OnShortCut (C++)
Description
This example requires that a TApplicationEvents and a TListBox are on the form. Select the TApplicationEvents, double-click the OnShortCut event, and add the following code to the handler. Trigger this event by pressing the CTRL key or any function key.
Code
void __fastcall TAppEventForm::ApplicationEventsShortCut(TWMKey &Msg,
bool &Handled)
{
lbOther->Items->Add("Event OnShortCut");
}