DisplayIndex([HelpFile: String = ""]);
HelpFile.Optional parameter determining the name of help file to be opened. If the parameter is not set, the system opens the file specified in the FileName property.
NOTE. If the path to help file is not specified, the file is searched in the folder, from which the current platform instance is started.
The DisplayIndex method opens the help file on the Index tab.
Executing the example requires a form, a button on it and the C:\Help\Project.chm help file. The example is a handler of the OnClick event for the Button1 component.
Add a link to the UI system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Help: IWinApplicationHelp;
Begin
Help := WinApplication.Help;
Help.FileName := "C:\Help\Project.chm";
Help.DisplayIndex;
End Sub Button1OnClick;
Clicking the button opens the specified help file on the Index tab.
See also: