AnsweredAssumed Answered

FM Go 16 Detect Orientation

Question asked by cacheman on Jun 1, 2018
Latest reply on Jun 1, 2018 by philmodjunk

I have finished creating my desktop solution and now need to go on to FM Go. So I have created both Portrait and Landscape layouts from my original solution. Now I need help in getting my app to detect which orientation the iPhone is in and then load that layout.

I have tried to attach a script trigger to one of the two layouts and have it fire off the following OnLayoutEnter;

 

Beep

If [ Get ( WindowOrientation ) >0 ]

                #----------Detect if Portrait  -------------------

                Go to Layout  [ “ ******-Port" (***)  ; Animation: None  ]

Else

                #------------Detect if Landscape  -------------

                Go to Layout  [ “****-Land"  (***) ; Animation: None  ]

End if

Evidently, there is something missing or more is required. Please, help!

Outcomes