4D v16.3

SET MENU ITEM MARK

Home

 
4D v16.3
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 MARK applies 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.



See also 

Get menu item mark

 
PROPERTIES 

Product: 4D
Theme: Menus
Number: 208

Not for server

 
HISTORY 

Modified: 4D v11 SQL

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)