Get menu item style

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


Get menu item style (menu; menuItem{; process}) Number

ParameterTypeDescription
menuNumberMenu number
menuItemNumberMenu item number
processNumberProcess reference number
Function resultNumberCurrent 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:

ConstantTypeValue
PlainLong Integer0
BoldLong Integer1
ItalicLong Integer2
UnderlineLong Integer4
OutlineLong Integer8
ShadowLong Integer16
CondensedLong Integer32
ExtendedLong Integer64

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

SET MENU ITEM STYLE.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next