RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.HelpContext Method

Displays a specified help topic.

Pascal
function HelpContext(Context: THelpContext): Boolean;
C++
__fastcall Boolean HelpContext(THelpContext Context);

Use HelpContext to bring up the help topic specified by the Context parameter from the file specified in the CurrentHelpFile property. HelpContext generates an OnHelp event (either on the active form or on the application object itself). If there is no OnHelp event handler, or if the event handler indicates that WinHelp should be called, then HelpContext invokes the Windows help engine, passing it the context ID. 

For example, if the Context value is 714, the HelpContext method displays the screen with the context help ID of 714 in the help file specified by CurrentHelpFile

HelpContext returns false if CurrentHelpFile is an empty string, meaning the application has no help file assigned. In all other cases, HelpContext returns true. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!