4D v14.3

SET MENU ITEM STYLE

Home

 
4D v14.3
SET MENU ITEM STYLE

SET MENU ITEM STYLE 


 

SET MENU ITEM STYLE ( menu ; menuItem ; itemStyle {; process} )  
Parameter Type   Description
menu  Longint, MenuRef in Menu number or Menu reference
menuItem  Longint in Menu item number or -1 for last item added
itemStyle  Longint in New menu item style
process  Longint in Process reference number

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:

Constant Type Value
Bold Longint 1
Italic Longint 2
Plain Longint 0
Underline Longint 4

 
PROPERTIES 

Product: 4D
Theme: Menus
Number: 425

Not for server

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

Get menu item style

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)