SET MENU ITEM STYLE

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11 (Modified)


SET MENU ITEM STYLE (menu; menuItem; itemStyle{; process})

ParameterTypeDescription
menuNumber | MenuRefMenu number or Menu reference
menuItemNumberMenu item number or
-1 for last item added
itemStyleNumberNew menu item style
processNumberProcess reference number

Description

The SET MENU ITEM STYLE command changes the font style of the menu item whose menu number or reference is passed in menu and whose item number is passed in menuItem according to the font style passed in itemStyle. You can pass -1 in menuItem in order to indicate the last item added to menu.

If you omit the process parameter, SET MENU ITEM STYLE applies to the menu bar for the current process. Otherwise, SET MENU ITEM STYLE applies to the menu bar for the process whose reference number is passed in process.

Note: If you pass a MenuRef in menu, the process parameter serves no purpose and will be ignored.

You specify the font style of the item in the itemStyle parameter. You pass a combination (one or a sum) of the following predefined constants, found in the Font Styles theme:

ConstantTypeValue
PlainLong Integer0
BoldLong Integer1
ItalicLong Integer2
UnderlineLong Integer4

See Also

Get menu item style.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next