Vcl.Menus.ShortCutFromMessage
Delphi
function ShortCutFromMessage(Message: TWMKey): TShortCut;
C++
extern DELPHI_PACKAGE System::Classes::TShortCut __fastcall ShortCutFromMessage(const Winapi::Messages::TWMKey &Message);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | Vcl.Menus |
Description
Generates a shortcut ID from a received message.
ShortCutFromMessage expects a TWMKey record that usually accompanies messages such as WM_CHAR and returns a TShortCut value that contains a shortcut ID. The resulting shortcut ID is built based on the key data stored in the input TWMKey value and the current state of the modifier keys (such as ALT, SHIFT, and CTRL).