Skip to main content
Version: 20 R7 BETA

SET MENU ITEM MARK

SET MENU ITEM MARK ( menu ; menuItem ; mark {; process} )

ParameterTypeDescription
menuInteger, TextMenu number or Menu reference
menuItemIntegerItem number or -1 for last item added
markTextNew menu item mark
processIntegerProcess reference number

This command is not thread-safe, it cannot be used in preemptive code.

Description

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