Topic: Using .chm help file in your project
Example, how to work with .chm help file in your project (ver. 3.3 and above):
const
IDH_TOPIC10 = 10;
IDH_TOPIC20 = 20;
IDH_TOPIC30 = 30;
IDH_TOPIC40 = 40;
IDH_TOPIC50 = 50;
procedure Form1_OnShow (Sender: string; Action: string);
begin
Application.HelpFile := ExtractFilePath(Application.ExeName) + 'Help\HelpFile.chm';
end;
procedure Form1_bContents_OnClick (Sender: string; var Cancel: boolean);
begin
Application.HelpContents;
end;
procedure Form1_bIndex_OnClick (Sender: string; var Cancel: boolean);
begin
Application.HelpIndex('test');
end;
procedure Form1_bSearch_OnClick (Sender: string; var Cancel: boolean);
begin
Application.HelpSearch;
end;
procedure Form1_bTopic30_OnClick (Sender: string; var Cancel: boolean);
begin
Application.HelpContext(IDH_TOPIC30);
end;
procedure Form1_bTopic40_OnClick (Sender: string; var Cancel: boolean);
begin
Application.HelpContext(IDH_TOPIC40);
end;
procedure Form1_bKeyword_OnClick (Sender: string; var Cancel: boolean);
begin
Application.HelpKeyword('Test');
end;
Example project: