DisplaySearch([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 DisplaySearch method opens help file on the Search 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.DisplaySearch;
End Sub Button1OnClick;
Clicking the button opens the specified help file on the Search tab.
See also: