Demo Projects
The HTML Help zip file contains three simple demo projects. These are all located in the Demo subfolder. There is also a Common subfolder in which a copy of the HtmlHlp interface unit, used by the demo projects, is located. In that folder you will also find a unit called HtmlHlpUtils. This unit contains a number of utility routines that, hopefully, make programming HTML Help even easier then it already is. The demo projects do not use this unit though.
The projects we're all build and tested with Delphi 4, and 5. You should be able to open and build the demo projects with any of these versions. Note that the projects all depend on the JediHtmlHelp.chm file which is located in the Help subfolder. The path to this helpfile is hardcoded into the demo projects so you should either keep the same folder structure or manually change the projects. Note that all demo projects we're tested using the latest version of HTML Help (1.22). If you are still using on older version some parts of the demo projects may not work correctly. You can download an HTML Help update from the Microsoft website. If you still use Delphi 3 then the projects won't compile due to the usage of the EXTERNALSYM directives in the interface unit. In this case you should download the Delphi HH Kit from the Helpware website. The sample projects in that package can be build with Delphi 3 and you can use the hh.pas interface unit from that package to build the Demo Projects in this package.
The demo projects are all very simple projects that attempt to demonstrate programming HTML Help. Here's a short description:
Notifications: This demo demonstrates using
HTML Help Notifications. Notifications are messages send to your application by HTML Help
whenever something interesting happens, for example when the user navigated to another
topic. You can use Notifications to keep you're application in synch with the HTML Help
window.
Embedded: The Embedded demo demonstrates embedding the HTML Help
window inside your applications form.
Commands: The Commands demo allows you to experiment a bit with
the various HTML Help commands. It contains a button for almost each HTML Help command and
allows you to modify some of the parameters associated with the command.
Notes:
These demo projects are based on the demo projects included with the Delphi HTML
Help Kit created by Robert Chandler. If you like to have even more examples then you
should download the Delphi HTML Help Kit available from the Helpware
website. The example projects included with that package demonstrate virtually everything
that is possible with HTML Help and go way beyond the demo's included with this package.
Also, the Helpware website contains invaluable information on HTML Help so it's definitely
worth taking a look even if you are not interested in the Delphi HTML Help Kit.