Board index » delphi » Help Contents file

Help Contents file

Hello,

I am writing an application in Delphi 2.0 and I would like to add a
menu-item Help to this new application. When the user choose for the
menu-item Help, the help-file must start. I have tried the following code,
but the first helpscreen is shown.
--
begin
  Application.HelpFile := 'TaalWijzer.hlp';
  Application.HelpCommand(HELP_CONTENTS, 0);
end;
--

But I wrote also an Help Contents file (TaalWijzer.cnt). This is the help
screen what you get also when you startup the helpfile from p.e. Word 97 or
CorelDraw 6.
How can I startup the Help contents file TaalWijzer.cnt??

Thank you in advance!!

Regards,
Gert Veldhuis
email veldh...@tem.nhl%.nl
The Netherlands

 

Re:Help Contents file


Quote
GJV wrote:

> Hello,

> I am writing an application in Delphi 2.0 and I would like to add a
> menu-item Help to this new application. When the user choose for the
> menu-item Help, the help-file must start. I have tried the following code,
> but the first helpscreen is shown.
> --
> begin
>   Application.HelpFile := 'TaalWijzer.hlp';
>   Application.HelpCommand(HELP_CONTENTS, 0);
> end;
> --

> But I wrote also an Help Contents file (TaalWijzer.cnt). This is the help
> screen what you get also when you startup the helpfile from p.e. Word 97 or
> CorelDraw 6.
> How can I startup the Help contents file TaalWijzer.cnt??

> Thank you in advance!!

> Regards,
> Gert Veldhuis
> email veldh...@tem.nhl%.nl
> The Netherlands

Hi,
Here's an example:

const
  HELP_TAB = $000F;
begin
  { Bring up helpfile contents (tab #0) }
  Application.HelpCommand(HELP_TAB, 0);
end;

As long as you have a contents file, this code works.
You could always add a check to see if the file exists before
calling the help file...

-Jorgen

Other Threads