Re: change orientation on just one card

2013-06-13 Thread Thomas McGrath III
FYI, I had a library interrupting the preOpenCard handler and so was not 
getting the expected results that I needed. It is fixed now and this works as 
expected for me.

John, I have my set allowed in the preOpen card and it works on iOS. Which one 
is needed for Android???

Thanks to everyone for the sanity check.

-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On Jun 12, 2013, at 8:26 AM, John Dixon dixo...@hotmail.co.uk wrote:

 No that is not the case... setting the setAllowedOrientations to a new 
 configuration is sufficient... I have an example where viewing a map on a 
 card in landscape... tapping the callout... the card rotates automatically to 
 portrait when displaying the info on another card... all that has been done 
 is to drop landscape from the allowed orientations...
 
 Subject: Re: change orientation on just one card
 From: mcgra...@mac.com
 Date: Wed, 12 Jun 2013 08:17:43 -0400
 To: use-livecode@lists.runrev.com
 
 Apparently it seems that the mobileUnlockOrientation is needed to allow a 
 card to auto rotate to the desired new set of orientations allowed (even 
 though there was no mobileLockOrientation set before).
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 5:54 AM, Pierre Sahores s...@sahores-conseil.com wrote:
 
 Works fine here (LC 5.5.5) in using the following code to open a substack 
 in landscape mode and return to portrait mode as soon as the app closes it 
 and goes back to the main stack :
 
 1.- In the substack stack's script :
 
 on preopenStack
  if the environment is not mobile 
  then exit preopenStack
  else if playerA is in the short name of this stack
  then mobileSetAllowedOrientations portrait,landscape left,landscape 
 right
 end preopenStack
 
 2.- In the substack card's script :
 
 on preopencard
  mobileUnlockOrientation
  mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopencard
 
 on closeCard
  mobileSetAllowedOrientations portrait
 end closeCard
 
 3.- In the mainstack stack's script : nothing
 
 4.- In the mainstack card's script : nothing
 
 Both preopenStack and preopenCard are needed to get the 
 mobileSetAllowedOrientations message being efficiently catched on both iOS 
 and Android platforms.
 
 
 Le 12 juin 2013 à 05:17, Scott Rossi a écrit :
 
 Seems to work here in LC 5.5.3 (what I have handy).
 
 Not sure if anything has changed in later versions.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
 
 Has anyone been successful in having just one card in an app be
 restricted to just landscape. I have an app that is supported for all
 orientations but for one card I want to restrict the allowed orientations
 to just landscape.
 
 I tried this on the card I want to restrict but with no luck:
 on preopencard
  if the environment is mobile then
   mobileSetAllowedOrientations landscape left,landscape right
  end if
 end preopencard
 
 Is there a way to set the orientation when opening a card. I can't seem
 to discover any.
 
 Tom
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Pierre Sahores
 mobile : 06 03 95 77 70
 www.sahores-conseil.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: change orientation on just one card

2013-06-13 Thread Dar Scott
Maybe PASS in such handlers is a good habit.  I'm not sure.

Dar


On Jun 13, 2013, at 9:04 AM, Thomas McGrath III wrote:

 FYI, I had a library interrupting the preOpenCard handler and so was not 
 getting the expected results that I needed. It is fixed now and this works as 
 expected for me.
 
 John, I have my set allowed in the preOpen card and it works on iOS. Which 
 one is needed for Android???
 
 Thanks to everyone for the sanity check.
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 8:26 AM, John Dixon dixo...@hotmail.co.uk wrote:
 
 No that is not the case... setting the setAllowedOrientations to a new 
 configuration is sufficient... I have an example where viewing a map on a 
 card in landscape... tapping the callout... the card rotates automatically 
 to portrait when displaying the info on another card... all that has been 
 done is to drop landscape from the allowed orientations...
 
 Subject: Re: change orientation on just one card
 From: mcgra...@mac.com
 Date: Wed, 12 Jun 2013 08:17:43 -0400
 To: use-livecode@lists.runrev.com
 
 Apparently it seems that the mobileUnlockOrientation is needed to allow a 
 card to auto rotate to the desired new set of orientations allowed (even 
 though there was no mobileLockOrientation set before).
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 5:54 AM, Pierre Sahores s...@sahores-conseil.com 
 wrote:
 
 Works fine here (LC 5.5.5) in using the following code to open a substack 
 in landscape mode and return to portrait mode as soon as the app closes it 
 and goes back to the main stack :
 
 1.- In the substack stack's script :
 
 on preopenStack
 if the environment is not mobile 
 then exit preopenStack
 else if playerA is in the short name of this stack
 then mobileSetAllowedOrientations portrait,landscape left,landscape 
 right
 end preopenStack
 
 2.- In the substack card's script :
 
 on preopencard
 mobileUnlockOrientation
 mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopencard
 
 on closeCard
 mobileSetAllowedOrientations portrait
 end closeCard
 
 3.- In the mainstack stack's script : nothing
 
 4.- In the mainstack card's script : nothing
 
 Both preopenStack and preopenCard are needed to get the 
 mobileSetAllowedOrientations message being efficiently catched on both iOS 
 and Android platforms.
 
 
 Le 12 juin 2013 à 05:17, Scott Rossi a écrit :
 
 Seems to work here in LC 5.5.3 (what I have handy).
 
 Not sure if anything has changed in later versions.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
 
 Has anyone been successful in having just one card in an app be
 restricted to just landscape. I have an app that is supported for all
 orientations but for one card I want to restrict the allowed orientations
 to just landscape.
 
 I tried this on the card I want to restrict but with no luck:
 on preopencard
 if the environment is mobile then
  mobileSetAllowedOrientations landscape left,landscape right
 end if
 end preopencard
 
 Is there a way to set the orientation when opening a card. I can't seem
 to discover any.
 
 Tom
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Pierre Sahores
 mobile : 06 03 95 77 70
 www.sahores-conseil.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use

Re: change orientation on just one card

2013-06-13 Thread Thomas McGrath III
PASS seems to help a lot when working with many libraries. ;-)

But tracking down the messages path for this with locked libraries is a real 
pain.

-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On Jun 13, 2013, at 12:04 PM, Dar Scott d...@swcp.com wrote:

 Maybe PASS in such handlers is a good habit.  I'm not sure.
 
 Dar
 
 
 On Jun 13, 2013, at 9:04 AM, Thomas McGrath III wrote:
 
 FYI, I had a library interrupting the preOpenCard handler and so was not 
 getting the expected results that I needed. It is fixed now and this works 
 as expected for me.
 
 John, I have my set allowed in the preOpen card and it works on iOS. Which 
 one is needed for Android???
 
 Thanks to everyone for the sanity check.
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 8:26 AM, John Dixon dixo...@hotmail.co.uk wrote:
 
 No that is not the case... setting the setAllowedOrientations to a new 
 configuration is sufficient... I have an example where viewing a map on a 
 card in landscape... tapping the callout... the card rotates automatically 
 to portrait when displaying the info on another card... all that has been 
 done is to drop landscape from the allowed orientations...
 
 Subject: Re: change orientation on just one card
 From: mcgra...@mac.com
 Date: Wed, 12 Jun 2013 08:17:43 -0400
 To: use-livecode@lists.runrev.com
 
 Apparently it seems that the mobileUnlockOrientation is needed to allow a 
 card to auto rotate to the desired new set of orientations allowed (even 
 though there was no mobileLockOrientation set before).
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 5:54 AM, Pierre Sahores s...@sahores-conseil.com 
 wrote:
 
 Works fine here (LC 5.5.5) in using the following code to open a substack 
 in landscape mode and return to portrait mode as soon as the app closes 
 it and goes back to the main stack :
 
 1.- In the substack stack's script :
 
 on preopenStack
 if the environment is not mobile 
 then exit preopenStack
 else if playerA is in the short name of this stack
 then mobileSetAllowedOrientations portrait,landscape left,landscape 
 right
 end preopenStack
 
 2.- In the substack card's script :
 
 on preopencard
 mobileUnlockOrientation
 mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopencard
 
 on closeCard
 mobileSetAllowedOrientations portrait
 end closeCard
 
 3.- In the mainstack stack's script : nothing
 
 4.- In the mainstack card's script : nothing
 
 Both preopenStack and preopenCard are needed to get the 
 mobileSetAllowedOrientations message being efficiently catched on both 
 iOS and Android platforms.
 
 
 Le 12 juin 2013 à 05:17, Scott Rossi a écrit :
 
 Seems to work here in LC 5.5.3 (what I have handy).
 
 Not sure if anything has changed in later versions.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
 
 Has anyone been successful in having just one card in an app be
 restricted to just landscape. I have an app that is supported for all
 orientations but for one card I want to restrict the allowed 
 orientations
 to just landscape.
 
 I tried this on the card I want to restrict but with no luck:
 on preopencard
 if the environment is mobile then
 mobileSetAllowedOrientations landscape left,landscape right
 end if
 end preopencard
 
 Is there a way to set the orientation when opening a card. I can't seem
 to discover any.
 
 Tom
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Pierre Sahores
 mobile : 06 03 95 77 70
 www.sahores-conseil.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
   
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com

RE: change orientation on just one card

2013-06-13 Thread Ralph DiMola
I found that (at least on mobile) pass is always a good idea for
pre/open/resize handlers. For example I found if did not pass resizestack...
In iOS the page just flipped hard and did not smoothly rotate. Also things
would sometimes go sideways if didn't pass preopencard and opencard.

So. I started passing every engine message and then got myself in
trouble after passing returninfield and started sending returns all over the
place in a loop. I now try to make a judgment call on what messages to pass.
A guide-line on engine messages to pass would be helpful.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Dar Scott
Sent: Thursday, June 13, 2013 12:05 PM
To: How to use LiveCode
Subject: Re: change orientation on just one card

Maybe PASS in such handlers is a good habit.  I'm not sure.

Dar


On Jun 13, 2013, at 9:04 AM, Thomas McGrath III wrote:

 FYI, I had a library interrupting the preOpenCard handler and so was not
getting the expected results that I needed. It is fixed now and this works
as expected for me.
 
 John, I have my set allowed in the preOpen card and it works on iOS. Which
one is needed for Android???
 
 Thanks to everyone for the sanity check.
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 8:26 AM, John Dixon dixo...@hotmail.co.uk wrote:
 
 No that is not the case... setting the setAllowedOrientations to a new
configuration is sufficient... I have an example where viewing a map on a
card in landscape... tapping the callout... the card rotates automatically
to portrait when displaying the info on another card... all that has been
done is to drop landscape from the allowed orientations...
 
 Subject: Re: change orientation on just one card
 From: mcgra...@mac.com
 Date: Wed, 12 Jun 2013 08:17:43 -0400
 To: use-livecode@lists.runrev.com
 
 Apparently it seems that the mobileUnlockOrientation is needed to allow
a card to auto rotate to the desired new set of orientations allowed (even
though there was no mobileLockOrientation set before).
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 5:54 AM, Pierre Sahores s...@sahores-conseil.com
wrote:
 
 Works fine here (LC 5.5.5) in using the following code to open a
substack in landscape mode and return to portrait mode as soon as the app
closes it and goes back to the main stack :
 
 1.- In the substack stack's script :
 
 on preopenStack
 if the environment is not mobile 
 then exit preopenStack
 else if playerA is in the short name of this stack then 
 mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopenStack
 
 2.- In the substack card's script :
 
 on preopencard
 mobileUnlockOrientation
 mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopencard
 
 on closeCard
 mobileSetAllowedOrientations portrait
 end closeCard
 
 3.- In the mainstack stack's script : nothing
 
 4.- In the mainstack card's script : nothing
 
 Both preopenStack and preopenCard are needed to get the
mobileSetAllowedOrientations message being efficiently catched on both iOS
and Android platforms.
 
 
 Le 12 juin 2013 à 05:17, Scott Rossi a écrit :
 
 Seems to work here in LC 5.5.3 (what I have handy).
 
 Not sure if anything has changed in later versions.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
 
 Has anyone been successful in having just one card in an app be 
 restricted to just landscape. I have an app that is supported for 
 all orientations but for one card I want to restrict the allowed 
 orientations to just landscape.
 
 I tried this on the card I want to restrict but with no luck:
 on preopencard
 if the environment is mobile then
  mobileSetAllowedOrientations landscape left,landscape right
 end if
 end preopencard
 
 Is there a way to set the orientation when opening a card. I 
 can't seem to discover any.
 
 Tom
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Pierre Sahores
 mobile : 06 03 95 77 70
 www.sahores-conseil.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
 http

Re: change orientation on just one card

2013-06-12 Thread Pierre Sahores
Works fine here (LC 5.5.5) in using the following code to open a substack in 
landscape mode and return to portrait mode as soon as the app closes it and 
goes back to the main stack :

1.- In the substack stack's script :

 on preopenStack
if the environment is not mobile 
then exit preopenStack
else if playerA is in the short name of this stack
then mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopenStack

2.- In the substack card's script :

 on preopencard
mobileUnlockOrientation
mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopencard
 
 on closeCard
mobileSetAllowedOrientations portrait
 end closeCard

3.- In the mainstack stack's script : nothing

4.- In the mainstack card's script : nothing

Both preopenStack and preopenCard are needed to get the 
mobileSetAllowedOrientations message being efficiently catched on both iOS and 
Android platforms.


Le 12 juin 2013 à 05:17, Scott Rossi a écrit :

 Seems to work here in LC 5.5.3 (what I have handy).
 
 Not sure if anything has changed in later versions.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
 
 Has anyone been successful in having just one card in an app be
 restricted to just landscape. I have an app that is supported for all
 orientations but for one card I want to restrict the allowed orientations
 to just landscape.
 
 I tried this on the card I want to restrict but with no luck:
 on preopencard
if the environment is mobile then
 mobileSetAllowedOrientations landscape left,landscape right
end if
 end preopencard
 
 Is there a way to set the orientation when opening a card. I can't seem
 to discover any.
 
 Tom
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: change orientation on just one card

2013-06-12 Thread Thomas McGrath III
Apparently it seems that the mobileUnlockOrientation is needed to allow a card 
to auto rotate to the desired new set of orientations allowed (even though 
there was no mobileLockOrientation set before).


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

On Jun 12, 2013, at 5:54 AM, Pierre Sahores s...@sahores-conseil.com wrote:

 Works fine here (LC 5.5.5) in using the following code to open a substack in 
 landscape mode and return to portrait mode as soon as the app closes it and 
 goes back to the main stack :
 
 1.- In the substack stack's script :
 
 on preopenStack
   if the environment is not mobile 
   then exit preopenStack
   else if playerA is in the short name of this stack
   then mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopenStack
 
 2.- In the substack card's script :
 
 on preopencard
   mobileUnlockOrientation
   mobileSetAllowedOrientations portrait,landscape left,landscape right
 end preopencard
 
 on closeCard
   mobileSetAllowedOrientations portrait
 end closeCard
 
 3.- In the mainstack stack's script : nothing
 
 4.- In the mainstack card's script : nothing
 
 Both preopenStack and preopenCard are needed to get the 
 mobileSetAllowedOrientations message being efficiently catched on both iOS 
 and Android platforms.
 
 
 Le 12 juin 2013 à 05:17, Scott Rossi a écrit :
 
 Seems to work here in LC 5.5.3 (what I have handy).
 
 Not sure if anything has changed in later versions.
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
 
 Has anyone been successful in having just one card in an app be
 restricted to just landscape. I have an app that is supported for all
 orientations but for one card I want to restrict the allowed orientations
 to just landscape.
 
 I tried this on the card I want to restrict but with no luck:
 on preopencard
   if the environment is mobile then
mobileSetAllowedOrientations landscape left,landscape right
   end if
 end preopencard
 
 Is there a way to set the orientation when opening a card. I can't seem
 to discover any.
 
 Tom
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 --
 Pierre Sahores
 mobile : 06 03 95 77 70
 www.sahores-conseil.com
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: change orientation on just one card

2013-06-12 Thread John Dixon
No that is not the case... setting the setAllowedOrientations to a new 
configuration is sufficient... I have an example where viewing a map on a card 
in landscape... tapping the callout... the card rotates automatically to 
portrait when displaying the info on another card... all that has been done is 
to drop landscape from the allowed orientations...

 Subject: Re: change orientation on just one card
 From: mcgra...@mac.com
 Date: Wed, 12 Jun 2013 08:17:43 -0400
 To: use-livecode@lists.runrev.com
 
 Apparently it seems that the mobileUnlockOrientation is needed to allow a 
 card to auto rotate to the desired new set of orientations allowed (even 
 though there was no mobileLockOrientation set before).
 
 
 -- Tom McGrath III
 http://lazyriver.on-rev.com
 mcgra...@mac.com
 
 On Jun 12, 2013, at 5:54 AM, Pierre Sahores s...@sahores-conseil.com wrote:
 
  Works fine here (LC 5.5.5) in using the following code to open a substack 
  in landscape mode and return to portrait mode as soon as the app closes it 
  and goes back to the main stack :
  
  1.- In the substack stack's script :
  
  on preopenStack
if the environment is not mobile 
then exit preopenStack
else if playerA is in the short name of this stack
then mobileSetAllowedOrientations portrait,landscape left,landscape 
  right
  end preopenStack
  
  2.- In the substack card's script :
  
  on preopencard
mobileUnlockOrientation
mobileSetAllowedOrientations portrait,landscape left,landscape right
  end preopencard
  
  on closeCard
mobileSetAllowedOrientations portrait
  end closeCard
  
  3.- In the mainstack stack's script : nothing
  
  4.- In the mainstack card's script : nothing
  
  Both preopenStack and preopenCard are needed to get the 
  mobileSetAllowedOrientations message being efficiently catched on both iOS 
  and Android platforms.
  
  
  Le 12 juin 2013 à 05:17, Scott Rossi a écrit :
  
  Seems to work here in LC 5.5.3 (what I have handy).
  
  Not sure if anything has changed in later versions.
  
  Regards,
  
  Scott Rossi
  Creative Director
  Tactile Media, UX/UI Design
  
  
  
  
  On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:
  
  Has anyone been successful in having just one card in an app be
  restricted to just landscape. I have an app that is supported for all
  orientations but for one card I want to restrict the allowed orientations
  to just landscape.
  
  I tried this on the card I want to restrict but with no luck:
  on preopencard
if the environment is mobile then
 mobileSetAllowedOrientations landscape left,landscape right
end if
  end preopencard
  
  Is there a way to set the orientation when opening a card. I can't seem
  to discover any.
  
  Tom
  
  
  -- Tom McGrath III
  http://lazyriver.on-rev.com
  mcgra...@mac.com
  
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
  
  
  
  
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your 
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
  
  --
  Pierre Sahores
  mobile : 06 03 95 77 70
  www.sahores-conseil.com
  
  
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your 
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


change orientation on just one card

2013-06-11 Thread Thomas McGrath III
Has anyone been successful in having just one card in an app be restricted to 
just landscape. I have an app that is supported for all orientations but for 
one card I want to restrict the allowed orientations to just landscape.

I tried this on the card I want to restrict but with no luck:
on preopencard
 if the environment is mobile then 
  mobileSetAllowedOrientations landscape left,landscape right
 end if
end preopencard

Is there a way to set the orientation when opening a card. I can't seem to 
discover any.

Tom


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: change orientation on just one card

2013-06-11 Thread J. Landman Gay

On 6/11/13 8:40 PM, Thomas McGrath III wrote:

Has anyone been successful in having just one card in an app be
restricted to just landscape. I have an app that is supported for all
orientations but for one card I want to restrict the allowed
orientations to just landscape.

I tried this on the card I want to restrict but with no luck: on
preopencard if the environment is mobile then
mobileSetAllowedOrientations landscape left,landscape right end if
end preopencard

Is there a way to set the orientation when opening a card. I can't
seem to discover any.


I haven't ever tried to do that, but reading the docs, it says that 
setting allowed orientations only takes effect the next time an 
orientation changes. If I'm reading it right, and the user is already in 
portrait mode, then the orientation restriction wouldn't happen until 
after they try to rotate the device at least once.


Maybe just structuring your resizestack handler on that card would be 
enough. Assuming you have a resizestack handler, always set up the 
layout to landscape if you're on that card.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: change orientation on just one card

2013-06-11 Thread Scott Rossi
Seems to work here in LC 5.5.3 (what I have handy).

Not sure if anything has changed in later versions.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 6/11/13 6:40 PM, Thomas McGrath III mcgra...@mac.com wrote:

Has anyone been successful in having just one card in an app be
restricted to just landscape. I have an app that is supported for all
orientations but for one card I want to restrict the allowed orientations
to just landscape.

I tried this on the card I want to restrict but with no luck:
on preopencard
 if the environment is mobile then
  mobileSetAllowedOrientations landscape left,landscape right
 end if
end preopencard

Is there a way to set the orientation when opening a card. I can't seem
to discover any.

Tom


-- Tom McGrath III
http://lazyriver.on-rev.com
mcgra...@mac.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode