ADDACCELERATOR |
Top Previous Next |
Syntax ADDACCELERATOR(win as WINDOW,fVirt as CHAR,key as WORD,cmd as WORD) Description Adds an accelerator (shortcut key) to the window or dialog. Parameters win - Window or Dialog to add the accelerator to. fVirt - Flag indicating which combination of keys activates the accelerator. key - ASCII or virtual key code. cmd - ID of menu associated with the accelerator. Return value None Remarks fVirt can be an or'ed combination of: @FCONTROL - CTRL key must be held down with the specified key. @FALT - ALT key must be held down with the specified key. @FSHIFT - SHIFT key must be held down with the specified key. @FNOINVERT - Specifies that no top-level menu item is highlighted when the accelerator is used. If this flag is not specified, a top-level menu item will be highlighted, if possible, when the accelerator is used. @FVIRTKEY - key specifies a virtual key code. If this flag is not used then key specifies an ASCII key code. Virtual key codes are listed in the appendix of this users guide. Example usage BEGINMENU win |