Show: Delphi
C++
Display Preferences
Vcl.Menus.ShortCutToKey
From XE2 API Documentation
Delphi
procedure ShortCutToKey(ShortCut: TShortCut; var Key: Word; var Shift: TShiftState);
C++
extern PACKAGE void __fastcall ShortCutToKey(System::Classes::TShortCut ShortCut, System::Word &Key, System::Classes::TShiftState &Shift);
Contents |
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | Vcl.Menus |
Description
Returns the key code and shift state of a menu shortcut.
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.
Shift returns the associated combination of SHIFT, CTRL, and ALT keys.
See Also