HOME - - - - - Delphi Tutorials TOC - - - - - - - - - - - - Other material for programmers
    Delicious Bookmark this on Delicious   Recommend to StumbleUpon

Delphi: Linking to Helpfiles

This has good information, and a search button at the bottom of the page

Please don't dismiss it because it isn't full of graphics, scripts, cookies, etc!

More information about the source and format of these pages is available.

While a "Readme" file can cover important ground, it isn't very long before your applications look pretty amateur without a "proper" helpfile. Happily, connecting them to your Delphi application is easy.

Creating them, while not hard, isn't trivial. There's information on tools and techniques for creating .hlp files here: creation of helpfiles.

Just before explaining how to link your application to its helpfile, let me mention that this tutorial doesn't go into the question of context sensitive help.

Let's say your application is called TRD6.exe, and the helpfile is TRD6.hlp. It is easiest, and makes sense, to put the .hlp file in the same folder (directory) as the .exe.

Within the OnFormCreate handler, for applications named as above, you would put...


To launch the helpfile becomes a simple matter of executing...


You could put that as what happens in the OnClick handler for a menu item called "help", or the OnClick handler for a button labeled "Help"... or you could call it some other way... but that's all the code you need!

I said this tutorial would be short!

First Catch your rabbit... I mean helpfile

While in general, I lean towards using general tools and open source applications... best of all open source general tool applications!!..., for many years I have used HelpScribble to create my .hlp and .chm files. Sometimes you need the right tool for a specific job, and I think creating helpfiles is one of the tasks where buying something is worthwhile.

I have a page discussing helpfile creation, too.)

            powered by FreeFind
  Site search Web search
Site Map    What's New    Search This search merely looks for the words you enter. It won't answer "Where can I download InpOut32?"

Click here if you're feeling kind! (Promotes my site via "Top100Borland")

If you visit 1&1's site from here, it helps me. They host my website, and I wouldn't put this link up for them if I wasn't happy with their service. They offer things for the beginner and the corporation.www.1and1.com icon

Ad from page's editor: Yes.. I do enjoy compiling these things for you. I hope they are helpful. However... this doesn't pay my bills!!! Sheepdog Software (tm) is supposed to help do that, so if you found this stuff useful, (and you run a Windows or MS-DOS PC) please visit my freeware and shareware page, download something, and circulate it for me? Links on your page to this page would also be appreciated!
Click here to visit editor's freeware, shareware page.

Link to Tutorials main page
How to email or write this page's editor, Tom Boyd

Valid HTML 4.01 Transitional Page tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org

If this page causes a script to run, why? Because of things like Google panels, and the code for the search button. Why do I mention scripts? Be sure you know all you need to about spyware.

....... P a g e . . . E n d s .....