Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Screen.Height
Queries screen height.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Screenshot | 1.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
ScreenID | The zero based index of the screen to to target. | 0 | |
Unit | Available in MBS FileMaker Plugin 14.6 or newer. Can be point or pixel or empty. Default is pixel on Windows and point on macOS/iOS. |
"Point" | Optional |
Description
Queries screen height.FileMaker's built in functions for returning related information only works for the "desktop" and may include more than one screen in a Multiple monitor situation. Also Get(WindowDesktopHeight) returns the height of the desktop not the height of the monitor. The desktop height does not include the height of the menu.
For version 7.1 we added support for multiple monitors for Windows.
Examples
Get the first screen's co-ordinates
MBS( "Screen.Left" ; 0 ) & "' " &
MBS( "Screen.Top" ; 0 ) & "' " &
MBS( "Screen.Width" ; 0 ) & "' " &
MBS( "Screen.Height" ; 0 )
Query size and position of two screens in pixels and points:
MBS("Screen.Left"; 0; "point") & "/" & MBS("Screen.Top"; 0; "point") & " " &
MBS("Screen.Width"; 0; "point") & "x" & MBS("Screen.Height"; 0; "point") & ¶ &
MBS("Screen.Left"; 0; "pixel") & "/" & MBS("Screen.Top"; 0; "pixel") & " " &
MBS("Screen.Width"; 0; "pixel") & "x" & MBS("Screen.Height"; 0; "pixel") & ¶ &
MBS("Screen.Left"; 1; "point") & "/" & MBS("Screen.Top"; 1; "point") & " " &
MBS("Screen.Width"; 1; "point") & "x" & MBS("Screen.Height"; 1; "point") & ¶ &
MBS("Screen.Left"; 1; "pixel") & "/" & MBS("Screen.Top"; 1; "pixel") & " " &
MBS("Screen.Width"; 1; "pixel") & "x" & MBS("Screen.Height"; 1; "pixel")
See also
- ProgressDialog.SetPosition
- ProgressDialog.SetPositionCentered
- Screen.Left
- Screen.Top
- Screen.Width
- Window.GetLeft
Release notes
- Version 14.6
- Added Unit parameter to Screen.Height, Screen.Left, Screen.Top and Screen.Width functions.
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 22nd November 2024