HOME - - - - - Delphi Tutorials TOC - - - - - - - - - - - - Other material for programmers

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!

Click here if you want to know more about the source and format of these pages.
While a "Readme" file can cover important ground, it isn't very long before your programs look pretty amateur without a "proper" helpfile. Happily, connecting them to your program 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 program to it's helpfile, let me mention that this tutorial doesn't go into the question of context sensitive help.

Let's say your program 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 programs named as above, you would put...
     application.helpfile:='TRD6.hlp';
To launch the helpfile becomes a simple matter of executing...
     application.helpcommand(HELP_CONTENTS,0);
You could put that as what happens in the OnClick handler for a menu item called "help", or the OnClick handler for a button labelled "Help"... or you could call it some other way... but that's all the code you need!

I said this tutorial would be short!
   Search this site or the web        powered by FreeFind
 
  Site search Web search
Site Map    What's New    Search
Please click on this to rate this tutorial....

.. and click here, too, if you're feeling really kind! (Promotes my site via "Top100Borland")
Ad from page's editor: Yes.. I do enjoy compiling these things for you... hope they are helpful. However.. this doesn't pay my bills!!! If you find this stuff useful, (and you run an MS-DOS or Windows 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
Here is how you can contact this page's author, Tom Boyd.


Why does this site cause a script to run? I have the traffic to this page monitored for me by Jazar Top 200 Delphi, and they provide promotional services, too. Click the "Help get this site publicity" link above for more information.