Topics
All
Mac OS X
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Guides
Examples
New in version:
8.2
8.3
8.4
8.5
9.0
9.1
9.2
9.3
9.4
9.5
Statistic
Window.TopHeight
Queries window's toolbar height.
Component | Version | macOS | Windows | Server | FileMaker Cloud | FileMaker iOS SDK |
Window | 8.3 | Yes | Yes | No | No | No |
MBS( "Window.TopHeight"; WindowRef { ; WithFrame } ) More
Parameters
Parameter | Description | Example value |
---|---|---|
WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. | 0 |
WithFrame | Optional Whether to include frame on Mac. Pass 1 to include frame. Default is 1 to include it. |
0 |
Result
Returns number or error.
Description
Queries window's toolbar height.This is the height for any toolbars between content and the window top border.
On MacOS without frame, the top height is for example about 50 pixels for two toolbars in the window. With Frame, you include 81 pixels for toolbar and window title. So top height can be 131 as an example.
Ruler is not included in that height, as it's part of FileMaker's content.
See also
Blog Entries
- Neues MBS FileMaker Plugin 8.3
- MBS FileMaker Plugin 8.3 released
- MBS FileMaker Plugin, version 8.3pr7
- MBS FileMaker Plugin, version 8.3pr6
- MBS FileMaker Plugin, version 8.3pr2
Release notes
- Version 8.3
- Added Window.TopHeight function.
- Changed Window.TopHeight to return value including toolbar and window title height.
Created 5th June 2018, last changed 14th July 2018
Window.ToggleFullScreen - Window.Update
Feedback: Report problem or ask question.

Links
MBS Xojo blog