version 6.0
Get menu item style (menu; menuItem{; process}) Number
Parameter | Type | Description | |
menu | Number | Menu number | |
menuItem | Number | Menu item number | |
process | Number | Process reference number | |
Function result | Number | Current menu item style |
Description
The Get menu item style command returns the font style of the menu item whose menu and item numbers are passed in menu and menuItem.
If you omit the process parameter, Get menu item style applies to the menu bar for the current process. Otherwise, Get menu item style applies to the menu bar for the process whose reference number is passed in process.
Get menu item style returns a combination (one or a sum) of the following predefined constants:
Constant | Type | Value |
Plain | Long Integer | 0 |
Bold | Long Integer | 1 |
Italic | Long Integer | 2 |
Underline | Long Integer | 4 |
Outline | Long Integer | 8 |
Shadow | Long Integer | 16 |
Condensed | Long Integer | 32 |
Extended | Long Integer | 64 |
Note: On Windows, only the styles Plain or a combination of Bold, Italic, and Underline are available.
Example
To test if a menu item is displayed in bold, you write:
If ((Get menu item style($vlMenu;$vlItem) & Bold)#0) `... End if
See Also