RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Menus.ShortCutToKey Function

Returns the key code and shift state of a menu shortcut.

Pascal
procedure ShortCutToKey(ShortCut: TShortCut; var Key: Word; var Shift: TShiftState);
C++
ShortCutToKey(TShortCut ShortCut, Word Key, TShiftState Shift);

Menus

Call ShortCutToKey to parse a menu shortcut into its virtual key code and shift state parts. 

ShortCut is the value of the menu shortcut. 

Key returns the virtual key code (Menus version) or Qt key code (QMenus version) for the key. 

Shirt returns the associated combination of Shift, Ctrl, and Alt keys. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!