IWinApplicationHelp.FileName

Syntax

FileName: String;

Description

The FileName property determines help file name and path.

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.

Example

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.DisplayContents;
End Sub Button1OnClick;

Clicking the button opens the specified help file on the Contents tab.

See also:

IWinApplicationHelp