Vcl.Forms.THelpEvent
C++
typedef bool __fastcall (__closure *THelpEvent)(System::Word Command, NativeInt Data, bool &CallHelp);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| typedef | public | Vcl.Forms.hpp | Vcl.Forms | Vcl.Forms | 
Description
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- Commandproperty. Typically,- Dataspecifies a keyword or context ID. For details, see the appropriate HTMLHelp topics in the MSDN Library.
- CallHelpis set by the event handler. If- CallHelpis- 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- CallHelpto- 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.