OnHelp (C++)
Description
This example requires that a TApplicationEvents and a TListBox are on the form. Select the TApplicationEvents, double-click the OnHelp event, and add the following code to the handler. Trigger this event by pressing the F1 key or by calling the HelpContext method. Set CallHelp to True if the application should still invoke the help system after the event.
Code
bool __fastcall TAppEventForm::ApplicationEventsHelp(WORD Command, int Data,
bool &CallHelp)
{
lbOther->Items->Add("Event OnHelp");
return false;
}