Menu bar height
Menu bar height -> Function result
Parameter | Type | Description | |
---|---|---|---|
Function result | Longint | ← | Height (expressed in pixels) of menu bar (returns zero if menu bar is hidden) |
This command is not thread-safe, it cannot be used in preemptive code.
Description
Menu bar height returns the height of the menu bar, expressed in pixels.
The command returns 0:
- if the menu bar is hidden
- in SDI mode on Windows, if it is called from a process without a form window. For more information on this mode, please refer to the SDI mode on Windows section.
Note: When the application is running in SDI mode on Windows, Menu bar height returns the height of a single menu bar line even if the window is narrowed and the menu bar has been wrapped on two or more lines.