4D v13.4

SET MENU ITEM MARK

Home

 
4D v13.4
SET MENU ITEM MARK

SET MENU ITEM MARK 


 

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

The SET MENU ITEM MARK command changes the check mark of the menu item whose menu number or reference is passed in menu and whose item number is passed in menuItem to the first character of the string passed in mark. You can pass -1 in menuItem in order to designate the last item added to the menu.

If you omit the process parameter, SET MENU ITEM MARKapplies to the menu bar for the current process. Otherwise, the command 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.

If you pass an empty string, any mark is removed from the menu item. Otherwise:

  • On Macintosh, the first character of the string becomes the mark of the menu item. Usually, you will pass Char (18), which is the check mark character for Macintosh menus.
  • On Windows, the menu item is assigned the standard check mark.

Example  

See example for the Get menu item mark command.

 
PROPERTIES 

Product: 4D
Theme: Menus
Number: 208

Not for server

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D v11 SQL

 
SEE ALSO 

Get menu item mark