Locating specific Help Topics in Delphi 7 Application

This section is for programmers. Please use it for all discussons on interfacing help with your applications and related subjects.

Moderators: Alexander Halser, Michael Schwarzl

Post Reply
Leonard Mann
Posts: 11
Joined: Fri Aug 06, 2010 5:48 pm

Locating specific Help Topics in Delphi 7 Application

Unread post by Leonard Mann »

I am in the process of creating Online Help for a Large Delphi 7 application.
I have downloaded a trial version of Help and Manual and have found it to be an excellent tool for creating end user documentation.

So far I have created an html help file with a number of topics in a file called 'AppHelp.chm'.

I can call this in my Delphi project as follows:

procedure TfrmMainMenu.HelpClick(Sender: TObject);
var DD: string;
begin
DD := 'C:\APPHELP\AppHelp.chm';
Shellexecute(Handle,'open',PChar(DD),nil,nil,SW_SHOWNORMAL);
end;

However, based on which form is currently begin displayed, I would like to go straight to the applicable Help topic for the form.

Can someone help me with an example of the best way to accomplish this?

Thanks,
Leonard
User avatar
Martin Wynne
Posts: 2656
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

Re: Locating specific Help Topics in Delphi 7 Application

Unread post by Martin Wynne »

Leonard Mann
Posts: 11
Joined: Fri Aug 06, 2010 5:48 pm

Re: Locating specific Help Topics in Delphi 7 Application

Unread post by Leonard Mann »

Thanks for the reply Martin.

I found a post that suggested I utilize the HTML Help Kit for Delphi from The Helpware Gorup.

I downloaded the units and ran through the Documentation and can accomplish the task with a simple command:

HHDisplayTopic('\C:\APPHELP\AppHelp.chm','Accounts_Receivable.htm','windefault', htHHAPI);

Works beautifully.

I am also going to look a the solutions proposed in the posts that you provided.

Thanks Again,
Leonard
Post Reply