Blough - Revised HHW Tutorial
Blough - Revised HHW Tutorial
by Lori Blough
Table of Contents
1 Introduction ...................................................................................................... 1
2 Download the Tutorial Files............................................................................... 3
• Save the Tutorial Files to Desktop ........................................................................... 3
• Remove the Sample TreeProject Files ..................................................................... 5
3 Create a New Project......................................................................................... 6
• Create a Project File................................................................................................. 6
• Import Additional Files .......................................................................................... 12
4 Customize the Project ..................................................................................... 17
• Set the Project Title ............................................................................................... 17
• Set the Default Topic ............................................................................................. 17
• Set up the Search Feature ..................................................................................... 18
5 Create the Table of Contents........................................................................... 19
• Create a Blank Table of Contents .......................................................................... 19
• Add Headings to the Table of Contents ................................................................. 21
• Add Subheadings to the Table of Contents............................................................ 27
• Add Subtopics to the Table of Contents ................................................................ 30
• Customize the Table of Contents ........................................................................... 32
6 Create the Index.............................................................................................. 34
• Create a Blank Index ............................................................................................. 34
• Create Keywords for the Index.............................................................................. 36
7 Create the Help Window.................................................................................. 39
8 Compile the Help File....................................................................................... 45
9 Edit the Completed Help System ..................................................................... 50
10 Further Options ............................................................................................... 51
Tutorial for Creating a Help System Introduction
1 Introduction
HTML Help Workshop (HHW) takes HTML help pages that you have created, including
graphics, and organizes them into a help system with a two-pane window to display your
information (called Topics), similar to the one in Figure 1. It allows you to easily create
an Index and a Table of Contents and also provides a search function. Your help system
can be more or less complex depending on your web design skills (such as JavaScript
or CSS) and on how much you use the customization options of HHW.
This tutorial will cover the creation of a simple Help project, including importing
necessary HTML and other files, creating a table of contents and index, and the
compiling and editing of a completed help system.
1
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Introduction
HHW uses HTML files to create your help system, so if you don’t know HTML you’ll have
to learn it or have someone else create the help files for you. You can write the HTML
files in Notepad or the text editor of your choice, or in a web authoring application like
Dreamweaver or Front Page. If you want to learn HTML you can find more information
from the World Wide Web Consortium (W3C), the creators of the HTML standard, at
http://www.w3.org/ and some great tutorials from W3 Schools at
http://www.w3schools.com. There are many other online tutorials available as well.
You can write your HTML content “on the fly” as you use HHW, or you can write it ahead
of time and just import the files into HHW. For the purposes of this tutorial, some sample
HTML files and graphics files have already been written for you. The instructions for
downloading these files are in Section 2: Download the Tutorial Files. Also, if you haven’t
done so yet, you will need to download HTML Help Workshop from Microsoft’s web site:
http://msdn.microsoft.com/en-us/library/ms670169(VS.85).aspx (scroll to the
bottom of the page to find the download link).
2
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Download the Tutorial Files
For this tutorial we will be creating a simple help system called TreeProject. Several
HTML files have already been created for you, plus some graphical files, all of which will
eventually make up the pages of the TreeProject Help System. The first thing we need to
do is download the files to your desktop.
5. A download window will appear; choose Save File and click OK.
6. A Zip file called TreeProject will appear on your desktop: Right-click on the
Zip file and choose Extract to…
7. In the Extract Window, scroll to the top of the window and choose Desktop, then
click the Extract button.
Choose to
save the
file on the
desktop.
Then click
Extract.
3
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Download the Tutorial Files
8. A window called WinZip – TreeProject.zip may remain open on your screen; you
can close it now.
9. Open the TreeProject folder to verify that the contents extracted properly. If
everything is in place, you can delete the Zip file and close out of your browser.
4
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Download the Tutorial Files
There are a more few files included in the TreeProject folder which will not be used in
the tutorial. They are only included so that you can view the completed TreeProject Help
System to see what the end product should look like. To avoid confusion, let’s remove
them from our TreeProject folder for now.
2. Cut and paste all of the following files from the TreeProject folder to the Sample
TreeProject folder.
a. Tree.chm
b. Tree.hhc
c. Tree.hhk
d. Tree.hhp
If you’d like, double-click on the file Tree.chm. A completed help system for TreeProject
will open so that you can see what your tutorial help system will eventually look like.
5
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
Now that we have some HTML files to build a help system with we can go into HTML
Help Workshop (HHW) and begin our sample project. If you haven’t installed HHW yet,
you will need to download it from Microsoft’s web site and install it now:
http://msdn.microsoft.com/en-us/library/ms670169(VS.85).aspx.
3. The New Project Wizard screen will appear. Just click Next.
Skip the
checkbox!
Just click
Next.
6
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
Click Browse
to find the
TreeProject
folder on your
desktop.
5. In the window that appears, choose Desktop, and then double-click on the
TreeProject folder. Enter the filename TreeProject.hhp in the File Name field and
click Open.
7
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
6. The New Project – Destination window will change to show the path to the
TreeProject.hhp file. Click Next.
Here’s the
TreeProject.hhp
path.
Click Next.
7. The New Project – Existing Files window will appear. For this tutorial we will be
using the HTML files (Topics) that we downloaded in Section 2: Download the
Tutorial Files, so select the check box next to HTML files (.htm) and then click
Next.
Click Next.
8
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
8. The New Project – HTML Files window will appear. Click Add.
Click Add.
9
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
10. A list of TreeProject Topics should now appear in the HTML Files window.
Click Next.
Click Next.
Click Finish.
10
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
12. The HHW screen will open, and all of the TreeProject Topics files you just
imported should be listed under the heading [FILES] on the Projects tab.
Imported .htm
files.
13. Back on your desktop, open the TreeProject folder and make sure that the
TreeProject.hhp file has successfully saved there.
11
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
Now that we have imported the Topics, we need to import the other files your project
requires – the graphics, the template, the special scripts, and the style sheet.
1. On the main HHW screen, click the Add/Remove Topic Files button.
Click Add.
3. Then navigate to the Graphics subfolder. At first the graphics subfolder will
appear to be empty. In the File Name field at the bottom of the window, type *.*
and click Open.
12
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
Several graphics files (ending in .gif and .jpg) should now appear in the list.
4. Select the first graphic file from the list by clicking it once; then, while holding the
Shift key down, select the last graphic file from the list by clicking it once. All of
the graphic files should now be highlighted. Click Open.
5. Back in the Topic Files window, make sure that the graphics files appear at the
end of the list.
13
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
6. In the Browse window that appears, navigate to the Common subfolder again.
Only the Graphics folder and the Deciduous on Mouseover.htm file should
appear. In the File Name field at the bottom of the window, type *.* and click
Open.
14
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
7. Select the first file from the list by clicking on it once; then, while holding the Shift
key down, select the last file from the list by clicking it once. All of the files should
now be highlighted. Click Open.
8. At the bottom of the Topic Files window, click OK to return to HHW. All of the files
you have imported so far should now be shown in the list under [FILES].
15
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create a New Project
9. At the top of the HHW screen, click File > Save Project.
16
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Customize the Project
General tab.
Setting the Default Topic will tell HHW which file to use whenever the Help File is first
opened.
1. Still on the General Tab, click on the drop-down arrow next to the Default File.
17
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Customize the Project
Compiler tab.
Select this
checkbox.
2. From the list of checkboxes, select the “Compile full-text search information,” and
click OK.
3. You will be returned to the main HHW screen. The [OPTIONS] section should
now show the changes you just made.
18
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
First we’ll create a blank Table of Contents and associate it with our main window. On
the HHW screen, so far we’ve only been working in the Project tab. Now let’s take a
look at the second tab, the Contents tab.
Contents
tab.
19
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
2. In the Save As window that appears, navigate to the TreeProject folder, then type
Tree_TOC.hhc in the File Name field. Be certain that you are in the TreeProject
folder!
3. Click Save. The Contents tab will now display on the HHW screen, but it will be
blank.
Blank Contents
tab.
20
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
5. At the top of the HHW screen, click File > Save Project.
Now let’s set up the headings for the Table of Contents. We have to enter each
heading, and then tell HHW where to look for the page.
21
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
3. Select the Main.htm file by clicking it once, and then click Open. The Browse
window will close and return you to the Path or URL window.
22
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
1. Click the Insert a Heading button, or you can also just right-click inside the
Contents tab, anywhere underneath the Introduction folder.
23
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
24
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
3. This time, select the Choose.htm file by clicking it once, and then click Open. The
Browse window will close and return you to the Path or URL window.
25
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
6. The TreeProject Help System has three more headings. Try adding them to the
table of contents using the above procedure. The remaining headings and the
associated filenames are:
When you are finished, the Table of Contents should look like this:
The Delete
button – just
in case!
7. At the top of the HHW screen, click File > Save Project.
26
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
27
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
4. This time, select the Ch_Zones.htm file by clicking it once, and then click Open.
The Browse window will close and return you to the Path or URL window.
28
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
6. Then click OK again on the Table of Contents Entry window. The Identifying
Your Planting Zone topic should now appear as a subheading under Choosing
a Tree.
7. The TreeProject system has a few more topics under some of the headings. Try
adding the remaining topics under the appropriate headings on your own using
this procedure. The headings, topic titles, and associated HTML files are:
29
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
When you are finished, the Table of Contents should look like this:
The Move
buttons.
8. At the top of the HHW screen, click File > Save Project.
You might have noticed that the topics of Oak and Santa Cruz shouldn’t really be
subheadings under Choosing a Tree. They are species of trees, and so should be
subtopics underneath Choosing Appropriate Species. Let’s move them to the correct
location.
1. Right-click on the entry for Oak and choose Move Right from the shortcut menu,
30
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
2. When you are finished, the Table of Contents should look like this:
3. At the top of the HHW screen, click File > Save Project.
31
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
Finally, we can customize our Table of Contents a little by changing the icons that
appear next to the headings.
32
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Table of Contents
3. Click OK.
5. When you are finished, the Table of Contents should look like this:
6. At the top of the HHW screen, select File > Save Project.
33
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Index
You can use HTML Help Workshop (HHW) to set up an Index for the TreeProject Help
System. Like any index, we need to create index entries, or keywords. Here we will
create the index, set up the keywords, and associate the index with the help system
main window.
First we’ll create a blank index and associate it with our main window.
Index tab.
34
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Index
2. In the Save As window that appears, navigate to the main TreeProject folder, and
then type Tree_Index.hhk in the File Name field. Be certain that you are in the
TreeProject folder!
3. Click Save. The Index tab will now display on the HHW screen, but it will be
blank.
4. Click the Index Properties button.
5. At the top of the HHW screen, select File > Save Project.
35
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Index
Now let’s set up the keywords for the Index. We have to enter each keyword and then
tell HHW where to look for that page. Large help systems may require hundreds of
keywords in the index, but for the purposes of the tutorial we will only create a few
entries for practice. When you create your first real index, it will need to be much more
comprehensive!
1. Click the Insert Keyword button.
36
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Index
6. Select the SantaCruz.htm file by clicking it once, and then click Open. The
Browse window will close and return you to the Path or URL window.
8. Then click OK again on the Table of Contents Entry window. An entry for the
keyword Pine should now appear on the Index tab.
37
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Index
3. The TreeProject Help System has only four more keywords. Try adding them to
the index using the above procedure. The remaining keywords and their
associated files are:
Keyword Filename
Redwood SantaCruz.htm
Evergreen SantaCruz.htm
Deciduous Oak.htm
Soil ** Ch_site.htm and
Prep_site.htm
** You can associate multiple filenames with a single keyword by
repeatedly choosing the Add button on the Index Entry window.
4. When you have finished adding keywords, click the Sort Keywords
Alphabetically button. HHW will automatically alphabetize the Index.
5. At the top of the HHW screen, click File > Save Project.
38
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Help Window
Project
tab.
39
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Help Window
40
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Help Window
41
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Help Window
4. Next, click on the Position tab. The Position Window Type Window will appear.
42
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Help Window
However, you should set the size and position of your Help Window to a default setting
that will be applied when anyone opens the help system for the first time. There are two
ways you can do this; try both options to see how they work.
Option A: Set
Left and Top,
Width and
Height in each
field.
Option B: Click
Autosizer and
set the window
size by hand.
a. Enter the left/top and width/height figures of your choice in the given fields.
(It is recommended to set left/top at 25/25 and width/height to 550/400.)
b. Click Autosizer, then click-drag the window to your desired position on the
screen, then resize the window to a comfortable size by click-dragging
the bottom right corner.
5. Click OK.
43
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Create the Help Window
6. The HHW screen should now reflect the changes you’ve made, including adding
a new section called [WINDOWS].
Updated HHW
information.
7. At the top of the HHW screen, click File > Save Project.
44
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Compile the Help File
Now, let’s make sure that our project file, table of contents, and index are all located
where we expect them to be.
1. On your desktop, open the TreeProject folder. Make sure that all of the project
files are located in the top-level directory of the folder, and not inside either the
Common subfolder or the Content subfolder.
If the TOC or Index files are not in the correct location, cut and paste to move the
file(s) to the top-level directory.
45
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Compile the Help File
4. Click on the Files tab. The Files Tab Window Type window will appear
Click OK.
46
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Compile the Help File
5. Click on the Change Project Options button. The Options window will
appear. Then click on the Files tab.
Click OK.
6. At the top of the HHW screen, click File > Save Project.
7. Still on the Project tab, look for the row of buttons across the top of the screen;
click the Compile HTML File button.
47
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Compile the Help File
8. When compiling is complete, click the View Compiled File button at the top
of the HHW screen.
Click Browse.
9. Select the TreeProject.chm file by clicking on it once, and then click Open.
48
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Compile the Help File
Click View.
A browser window will open to display the brand new HTML help system.
Take a look through the help system and see how it works! To view your completed help
system at any time, just open the TreeProject.chm file from HHW or from the TreeProject
Folder.
49
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Edit the Completed Help System
For instance:
• Do you feel that the 550 x 400 help window is too small? If you don’t remember
how to change the size of the help window, go to Step 9 of the Create the Help
Window procedure.
• Would you like different icons for your table of contents? If you don’t remember
how to change the TOC icons, go to the Customize the Table of Contents
procedure.
• Did you want to add a few more keywords to the index? If you don’t remember
how to enter keywords into the index, go to the Add Keywords to the Index
procedure.
When you have made all the adjustments to your satisfaction, save the project and click
the Compile HTML File button again. The project will recompile, then you can view it
again to see how it looks with your changes.
50
Life preserver icon courtesty of DryIcons.com.
Tutorial for Creating a Help System Further Options
10 Further Options
There are many more options and customizations available in HTML Help Workshop
(HHW) which are not covered in this tutorial. For instance you can add hyperlinks to
send users easily from one page to another with related content. You can customize the
search feature by adding a search stop list to prevent the search feature from including
simple words like “the” or “an.” You can embed your help system to an existing
application or program so that the help is easily available to users.
To find out more, be sure to look through the help system available in HTML Help
Workshop by clicking Help at the top of the HHW screen. Also, there are numerous
guides and tutorials to be found on the web. In particular, a popular one is Creating
HTML Help with Microsoft’s HHW by Char James-Tanney, which can be found on the
class web site, but can also be found in several places on the Internet.
51
Life preserver icon courtesty of DryIcons.com.