Pete,
Thank you for a detailed answer. However, it still doesn't work. I
assigned the Help Context ID to a control. But when I press F1, I get this
error message:
HH_HELP_CONTEXT called without a [MAP] section.
Also, my contents (.hhc) file does not look like yours.
I feel so stupid that I can't get this to work. I'm about ready to give up
and just give the user written help.
Thanks,
Debbie
Debbie,
I downloaded the HTML Help Workshop. The way it looks, you have
to create a HTML file for every help topic you want. But then I
found that you should be able to use SPLIT FILE so that you can
put multiple topics in one HTML file. But I cannot get it to
work!!!!! What am I missing?
Here's a small example that may help. The following are the contents
of the HTML file:
<html>
<head>
<title>Topic 1</title>
</head>
<body>
<p>Contents of the first topic.</p>
<object classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="New HTML file" value="topic2.htm">
<param name="New HTML title" value="Topic 2">
</object>
<p>Contents of the second topic.</p>
</body>
</html>
This is the project (.hhp) file:
[OPTIONS]
Compatibility=1.1 or later
Compiled file=filename.chm
Contents file=filename.hhc
Default Window=$global_main
Default topic=topics.htm
Title=Title Bar Text
[WINDOWS]
$global_main=,"filename.hhc",,"topics.htm","topics.htm",,,,,0x23520,222,0x10
46,[10,10,780,560],0xb0000,,,,,,0
[FILES]
topics.htm
And this is the contents (.hhc) file:
<HTML>
<BODY>
<UL>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Topic 1">
<param name="Local" value="topics.htm">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Topic 2">
<param name="Local" value="topic2.htm">
</OBJECT>
</UL>
</BODY>
</HTML>
By the way, the free HTML Tidy utility provides a simple means to
split a large HTML file into multiple smaller ones. (It breaks the
file whenever it encounters an <H2> element.)
http://www.w3.org/People/Raggett/tidy/