Board index » delphi » How do I integrate HELP FILE contents page

How do I integrate HELP FILE contents page

Hello Delphins..

I can't seem to find out how to link the contents page of my help file
to my application.  Do I need to use a HELP API?  I know there is the
HelpJump call, but that only allows me to jump to a specific topic by
specifying the TopicID.  I can't give the Contents page a TopicID.  I
know I'll probably kick myself when one of you gives me an answer.  It
seems like it should be such a simple thing to do.

Please let me know...
Thanks in advance,

Mark

 

Re:How do I integrate HELP FILE contents page


Quote
Mark Eason wrote:

> Hello Delphins..

> I can't seem to find out how to link the contents page of my help file
> to my application.  Do I need to use a HELP API?  I know there is the
> HelpJump call, but that only allows me to jump to a specific topic by
> specifying the TopicID.  I can't give the Contents page a TopicID.  I
> know I'll probably kick myself when one of you gives me an answer.  It
> seems like it should be such a simple thing to do.

> Please let me know...
> Thanks in advance,

> Mark

Hi,
In my application I use a help file only from one place - the Help menu
- where I use this call:

Application.HelpCommand(HELP_FINDER, 0);

This brings up the Context tab in the help file system.

-Jorgen

Re:How do I integrate HELP FILE contents page


[This follow up was also send to author]
A human entity called mea...@usa.net (Mark Eason) send the message :

Quote
>Hello Delphins..

>I can't seem to find out how to link the contents page of my help file
>to my application.  Do I need to use a HELP API?  I know there is the
>HelpJump call, but that only allows me to jump to a specific topic by
>specifying the TopicID.  I can't give the Contents page a TopicID.  I
>know I'll probably kick myself when one of you gives me an answer.  It
>seems like it should be such a simple thing to do.

From the UDDF

=====
Help Files Contents

From: "Jarle stabell" <jarle.sta...@dokpro.uio.no>

Using HELP_FINDER works if the "current tab" is not the 'Index' or 'Find' tab.
HELP_FINDER opens the Help Topics window, but doesn't change tab to the
Contents tab if current tab is 'Index' or 'Find'.

Try this code:

------------------------------------------------------------------------

Function L1InvokeHelpMacro(const i_strMacro: String; const i_bForceFile:
Boolean): Boolean;
Begin
  if i_bForceFile then
    Application.HelpCommand(HELP_FORCEFILE, 0);

  Result:=Application.HelpCommand(HELP_COMMAND,
Longint(PChar(i_strMacro))); //The PChar cast not strictly necessary.
End;

Forces the associated help file to (be) open, and shows the 'Index' tab:

  L1InvokeHelpMacro('Search()', True);

Forces the associated help file to (be) open, and shows the 'Contents' tab:

  L1InvokeHelpMacro('Contents()', True);

Forces the associated help file to (be) open, and shows the 'Find' tab
(WinHelp 4 only):

  L1InvokeHelpMacro('Find()', True);
=====

The Graphical Gnome (r...@ktibv.nl)
Sr. Software Engineer IT Department
-----------------------------------------
The Unofficial Delphi Developers FAQ
http://www.gnomehome.demon.nl/uddf/index.htm

Other Threads