2009 will not display help files

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
tbenci
Posts: 4
Joined: Tue Jun 27, 2006 3:42 pm

2009 will not display help files

Unread post by tbenci »

Hi all,

Finally did it, went from Delphi 7 to 2009. There is nothing I can do to get it to display a help file.

I tried help router and downloaded another two snippets that do effectively the same thing.

If I create a single form in D7 with a button and a Application.HelpFile= and Application.HelpContext etc it work fine. I compile the same code in D2009, click the button, an hourglass then nothing.

Any one have any ideas, is it a compiler setting (I tried running as admin incase it was an elevation issue etc).

Wits end folks. This has to be something so easy but I have tried the lot.

Any help well and truly appreciated.

Regards
Tony Benci
Tim Frost
Posts: 319
Joined: Mon Nov 22, 2004 11:45 pm

Unread post by Tim Frost »

I found it very painful, also. It does not help that there is little documentation to tell you what to do. But the following works for me in D2009:

1. Remove all third-party help units and code snippets.

2. Add HtmlHelpViewer in your main form interface uses list.

3. In your FormCreate method, specify your helpfile as:
Application.HelpFile := 'myhelpfile.chm';

4. To show a help topic, use:
Application.helpsystem.showhelp('topicname', application.helpfile);
Post Reply