[mobile:Android] mobileSetAllowedOrientations gives error
Nonsanity
form at nonsanity.com
Fri Jun 3 11:10:05 EDT 2011
Am I wrong in thinking this command doesn't exist unless the stack is
running in a mobile environment? In other words...
on preOpenStack
if the environment is "mobile" then
mobileSetAllowedOrientations "portrait"
end if
end preOpenStack
...Will prevent errors when running in the IDE on Windows or Mac, but will
limit the orientations to portrait-only when running on iOS or Android..?
Personally, I'd prefer the language to skip over such commands gracefully
instead of crashing the script when the environment is wrong. Otherwise the
programmer has to encase every such command in an environment check. Ugly...
~ Chris Innanen
~ Nonsanity
On Fri, Jun 3, 2011 at 9:19 AM, Roger Eller <roger.e.eller at sealedair.com>wrote:
> On Fri, Jun 3, 2011 at 9:06 AM, Colin Holgate wrote:
> > It looks different to the syntax Jacque gave you. She wrote:
> >
> > I had the same issue until I remembered to set the allowed orientations
> in preOpenStack:
> > mobileSetAllowedOrientations "portrait,portrait upside down,landscape
> left,landscape right"
> >
> >
> >
> > On Jun 3, 2011, at 7:45 AM, Roger Eller wrote:
> >
> >> What is wrong with my syntax? I have this in my openStack handler.
> >>
> >> put mobileSetAllowedOrientations("landscape right")
> >> or
> >> put mobileSetAllowedOrientations("portrait, portrait upside down,
> landscape
> >> left, landscape right")
> >
>
> It errors either way for me, with or without (). I even moved it into
> preOpenStack instead of openStack.
> Strangely, it still seems to enable the rotation of the screen while
> complaining in the IDE.
>
> ~Roger
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list