Home > Programming > Delphi Tutorial
Tutorial - How to use CHM Help in Delphi applications: a primer
Sort Desciption:Tutorial: How to use CHM Help in Delphi applications: a primer - www.allthingsdelphi.com
Content Inside:Tutorial: How to use CHM Help in Delphi applications: a primer - www.allthingsdelphi.com Tutorial - How to use CHM Help in Delphi applications: a primer Fancy using HTML Help in your Delphi applications ? Borland included an easy way to add help functionality to your Delphi applications, as long as you were happy to use *.hlp files. If, however, you wanted to use CHM files, then this would involve a little more work. There are several examples of how to do this, available on the Internet. Most of which that I have found have been written in the form of units, which add a lot of code to an application. Granted, this makes life easier when it comes to adding HTML-based functionality, but, it does complicate matters. I wanted to try and simplify the code, so that it was easier to understand, and at least be usable to provide basic help. Below is my result - please feel free to read, and use the code as you wish. The process, based around the example below, is as follows, although it does rely on some previsions: 1. You have started a new project, which has been saved. 2. On the form for this project, there are 2 buttons: Button1 has "Show Help by [MAP] ID" as a caption. Button2 has "Show Help by File Name" as its caption. 3. Within the same folder, you have a CHM help file. - Its name is not critical, but it must be the same as the name used in the project below. - You must know the names of the HTML files which have been compiled into the CHM file. The code has been tested on Delphi 7 - it may work in earlier versions, but this cannot be guaranteed. It is possible to add other constants, to extend the functionality, but the code below will illustrate the basic workings of how to use compiled help. THE PROCESS: ------------ 1. Open your project (.hhp) file in a text editor, such as Notepad. 2. Add a [MAP] section and define the IDs your require - for example: [ALIAS] IDH_HomePage=intro.html IDH ...
Source: www.allthingsdelphi.com
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Related Files
Tutorial - How to use CHM Help in Delphi applications: a primer
Filed under: Programming and Delphi TutorialTutorial: How to use CHM Help in Delphi applications: a primer - www.allthingsdelphi.com
Marco Cant 's Delphi Power Book: Debugging Delphi Programs
Filed under: Programming and Delphi TutorialOnce you compile a program in Delphi and run it, you may think you're finished, ... represents a useful approach to solving a specific programming problem. ...
How to create PDF file with Delphi
Filed under: Programming and Delphi TutorialHello, PDF!
