Re: Help command
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Sun, 28 Aug 2005 21:59:12 -0500
anthony wrote:
The help file tells me this
Application.HelpFile := 'myhelp.hlp'; Application.HelpCommand(HELP_FINDER, 0);
but how do I change it to open a contents page in my help file
if I change the HELP_FINDER to Contents, I get an error
Well, that's what you get for pulling commands out of thin air. The help for the HelpCommand method says this: "For information about Windows help commands and the data passed to them, see the WinHelp topic in the Windows Help system."
WinHelp is an API function, so find it in the Windows API help. I use MSDN for that:
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/functions/winhelp.asp
There we see a list of valid commands, and among them is one named Help_Contents, which has these details:
"Displays the topic specified by the Contents option in the [OPTIONS] section of the .hpj file. This command is for backward compatibility. New applications should provide a .cnt file and use the HELP_FINDER command."
-- Rob .
- Follow-Ups:
- Re: Help command
- From: anthony
- Re: Help command
- References:
- Help command
- From: anthony
- Help command
- Prev by Date: Re: Button XP appearance
- Next by Date: Re: Button XP appearance
- Previous by thread: Help command
- Next by thread: Re: Help command
- Index(es):