Page 1 of 1
Orientation bug
Posted: Thu Jun 27, 2013 12:35 pm
by SteveTX
Type Handler: can't find handler
Object application
Line mobileSetAllowedOrientations "portrait" // set allowed orientations
Hint mobileSetAllowedOrientations
Code: Select all
on preOpenStack
mobileSetAllowedOrientations "portrait" // set allowed orientations
end preOpenStack
If you remove the comment, then suddenly it works.
Re: Orientation bug
Posted: Thu Jun 27, 2013 12:46 pm
by Dixie
You should put the orientations in brackets, as in :-
Code: Select all
iphoneSetAllowedOrientations("landscape left", "landscape right")
Re: Orientation bug
Posted: Wed Jul 03, 2013 6:07 pm
by SteveTX
Tried this, still get an error when opening stack, no matter what the syntax. Appears to be a bug in LiveCode.
Code: Select all
executing at 10:03:06 AM
Type Handler: can't find handler
Object My App
Line mobileSetAllowedOrientations("portrait", "landscape left", "landscape right")
Hint mobileSetAllowedOrientations
Code: Select all
executing at 10:04:23 AM
Type Handler: can't find handler
Object My App
Line mobileSetAllowedOrientations "portrait,landscape left,landscape right"
Hint mobileSetAllowedOrientations
Re: Orientation bug
Posted: Wed Jul 03, 2013 8:14 pm
by Klaus
You see this eror in the IDE, right?
Unfotunately the desktop engine does NOT know about these commands,
so you need to use an IF THEN clause like this:
Code: Select all
...
## ONLY execute this on mobile!
if the environment = "mobile" then
mobile_this...
mobile_that..
end if
...
Best
Klaus