Jump to content

Detect iPad rotation in FM Go


Hijack
 Share

This topic is 4342 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Does anyone know if there is a way to detect iPad rotation with FM Go? I know I can anchor fields and stretch certain elements on layout resize to sort of smooth out the transition from vertical to horizontal but on certain occasions it would definately be nice to shift to a different layout specifically designed for one orientation or another.

Also, I've notices that FM Go is a wee bit sluggish on script execution on button elements. I'd say about 1 in every 3 or 4 times I try to run a script with a button it simply doesn't fire. I'll see the button visually depress so I know FM Go saw the button click but nada on script execution. I've tried on local files and hosted files and the performance seems the same. It's for this reason alone I don't really think FM Go is ready for production use. It can be frustrating at times. If users don't know what's supposed to happen when certain elements are clicked, when they don't fire, they'll never realize something WAS supposed to happen.

Any advice on either point?

Thanks!

Link to comment
Share on other sites

If the layout has an object anchored with the width or height and you use the GetLayoutObjectAttribute function with the "width" or "height" parameter in a script it might be possible. I haven't tested it, but logically it should work... but you never know with FM...

Link to comment
Share on other sites

  • 1 month later...

Does anyone know if there is a way to detect iPad rotation with FM Go? I know I can anchor fields and stretch certain elements on layout resize to sort of smooth out the transition from vertical to horizontal but on certain occasions it would definately be nice to shift to a different layout specifically designed for one orientation or another.

You can use "Get ( WindowContentWidth )" and "Get ( WindowContentHeight )" to detect the width and height of the screen on FM Go. From there you can determine which device you are on and it's orientation. Note: you'll have to put this into an OnTimer script to be constantly checking.

Also, I've notices that FM Go is a wee bit sluggish on script execution on button elements. I'd say about 1 in every 3 or 4 times I try to run a script with a button it simply doesn't fire. I'll see the button visually depress so I know FM Go saw the button click but nada on script execution. I've tried on local files and hosted files and the performance seems the same. It's for this reason alone I don't really think FM Go is ready for production use. It can be frustrating at times. If users don't know what's supposed to happen when certain elements are clicked, when they don't fire, they'll never realize something WAS supposed to happen.

It may be a problem with the pointer (your finger) moving before the button is released. If you press the button but then move your finger off of it before you lift it then the focus is moved off of the button. You may have to make your buttons bigger.

Link to comment
Share on other sites

This topic is 4342 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.