Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a help file in an app

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
GB
Hey everyone!

I've just written my own help file and have managed to open it when I click a button named 'Help' with the following lines:
Code:
  Application.HelpFile := 'IMDM Help.hlp';
  Application.HelpCommand(HELP_FINDER, 0);

However, in addition to this button, I want to be able to use the Question Mark symbol (in the top-right of the form) and drop it on certain edit controls to display the help file.

Do I need to use an OnDragDrop event or is there a specific event to use for this '?' button thing?

Any suggestions would be gratefully received! [2thumbsup]
 
Problem solved. All you need to do is include a number in the HelpContext property that corresponds to a Map ID of your help file.
 
The question mark is normaly used to provide hints on parts of your form as you say to drag a Question mark cursor over a button for exapmle then click to get the Hint message.
Calling help ID's in the way suggested is a valid way to open your help file at the correct Topic but I think this is not the same thing.
I use a free 3rd party component called EHS Help Router which simplifys this sort of thing.
Steve.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top