MenuHeight()

Syntax

Result = MenuHeight()
Description
Returns the height of the menu title bar. This allows the correct height of a window to be calculated when using a menu.

Parameters

None.

Return value

Returns the height in pixels of the menu bar.

Remarks

Linux & MacOS X: This command will always returns 0, as the menu bar isn't part of the window (it is always located on the main bar at the very top of the screen). Therefore MenuHeight() can be used seamlessly on every OS to adjust the window size depending on the actual menu height.

Supported OS

All

<- MenuBar() - Menu Index - MenuID() ->