Brian Dunning's FileMaker Custom Functions

GetWindowOrientation

Converts window orientation values ( aspect ratio and title bar position ) into human readable strings

  Average rating: 4.0 (1 vote) Log in to vote

Julio Toledo   Julio Toledo - Show more from this author
Automation USA LLC
https://www.automationusa.net

Share on Facebook Share on Twitter

  Sample input:
GetWindowOrientation
  Sample output:
* Returns "portrait" when orientation = 1

* Returns "portrait upside down" when orientation = 2

* Returns "square" when orientation = 0

* Returns "landscape right" when orientation = -1

* Returns "landscape left"" when orientation = -2

* Returns "N/A" as default

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Converts window orientation values ( aspect ratio and title bar position ) into human readable strings

* Returns "portrait" when orientation = 1
( window height > window width and title bar is upright )

* Returns "portrait upside down" when orientation = 2
( window height > window width and title bar is inverted )

* Returns "square" when orientation = 0
( aspect ratio is proportional )

* Returns "landscape right" when orientation = -1
( window width > window height and title bar is upright )

* Returns "landscape left"" when orientation = -2
( window width > window height and title bar is inverted )

* Returns "N/A" as default

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: