typedef bool __fastcall (__closure *THelpEvent)(System::Word Command, NativeInt Data, bool &CallHelp);
THelpEvent is the type of an OnHelp event handler.
THelpEvent includes the following parameters:
Command, which indicates the type of Help command that was issued. Its meaning depends on the current Help system. For example, when using HTMLHelp,
Commandis the command used by the HTMLHelp API. For details on possible commands, see the appropriate HTMLHelp topics in the MSDN Library.
Data, which provides additional data to describe the action of the Help system. Its value depends on the value of the
Dataspecifies a keyword or context ID. For details, see the appropriate HTMLHelp topics in the MSDN Library.
CallHelpis set by the event handler. If
truewhen the event handler exits, the application should forward the Help command to the Help system. If the event handler handles the command, it sets
falseso that the application does not forward the Help command to the Help system.
In order for the OnHelp event handler to work properly, insert in the uses clause of your application the Vcl.HtmlHelpViewer or another unit that provides an interface to the external Help viewer to use. The Vcl.HtmlHelpViewer unit provides a Delphi interface to the HTMLHelp Windows native Help handling function. For C++, you need to include the HTMLHelpViewer.hpp header file.
For information about the native Help handling functions (HTMLHelp or other) and about the data passed to them, see the appropriate HTMLHelp topics in the MSDN Library.