SET MENU ITEM MARK
SET MENU ITEM MARK ( menu ; menuItem ; mark {; process} )
Parameter | Type | Description | |
---|---|---|---|
menu | Integer, Text | → | Menu number or Menu reference |
menuItem | Integer | → | Item number or -1 for last item added |
mark | Text | → | New menu item mark |
process | Integer | → | Process reference number |
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
Properties
Command number | 208 |
Thread safe | ✗ |
Forbidden on the server |