Help Stdmain


This is an example of an HTML page being used as a help file. Because the help is formatted as HTML, it can include anything that can be included in a web page. It is a simple matter to have your help file link to a remote location so the user has easy access to the latest information. For example, this link to get the latest updates on the text and examples in this book.
This application is very simple, so there isn't much to the text of the help file, but the window of the appliation is shown at the left.

The menu displayed by the application is determined by the contents of the directory holding the the HTML file (or files). This allows the documentaion to be updated without a change to the application. New categories of help can be added to the menu without changing the program becuase the contents of the menu is derived from the contents of the help file.
Specifically, there is a file file named topic.dat that holds the list of topic names to appear on the menu. Each entry is the topic file defines one entry on the help menu, and the entry can specify a tag within the HTML file. The tag for this paragraph is 'topicfile' so the file contains the following:
    helpshow.html  Overall
    helpshow.html#topicfile Topics
The Help menu in the application uses the labels (Overall and Topics) to create the menu selections presented to the user.