version 6.0
SET MENU ITEM KEY (menu; menuItem; itemKey{; process})
| Parameter | Type | Description | |
| menu | Number | Menu number | |
| menuItem | Number | Menu item number | |
| itemKey | Number | ASCII code of new menu item key | |
| process | Number | Process reference number |
Description
The SET MENU ITEM KEY command replaces the shortcut key associated with the menu command specified by menu and menuItem, by the character whose ASCII code is passed in itemKey. This key will automatically be combined with the Ctrl (Windows) or Command (Macintosh) key in order to set the new keyboard shortcut.
If you omit the process parameter, SET MENU ITEM KEY applies to the menu bar for the current process. Otherwise, SET MENU ITEM KEY applies to the menu bar for the process whose reference number is passed in process.
If you pass 0 (zero) in itemKey, any shortcut is removed from the menu item.
Note: For consistency in the user interface, use uppercase characters, digits or symbols that are available on the keyboard, without using any modifier key other than the Ctrl (Windows) or Command (Macintosh) key.
See Also