Solved

Context help and help files

Posted on 1998-12-21
5
155 Views
Last Modified: 2010-04-04
I would like to get context-sensitive help in my main form, using a question-mark icon, like on the dialog forms. Programs like Eudora have a ? Button. How can I program this?
0
Comment
Question by:michaelhiggins
5 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
Comment Utility
Hi michaelhiggens,

That's well explained in the Delphi Informant article of May98.
Luckely we can get it right of the net :

http://www.informant.com/libs/delphi/3x/di9805dh.zip

File Size: 5,742
Title: On The Cover - What's This ?
Delphi Version: 3.0
Delphi Informant Issue: May 98
Author: David Hemphill
Description: You know what it is -- that little question-mark button. You click on it first, then click on what you're interested in to get help. You never gave it much thought, however, until it showed up as a client's specification. Fortunately, when asked "What's this?" Mr Hemphill replies: "Delphi!"

Regards, Zif.
0
 
LVL 3

Expert Comment

by:philipleighs
Comment Utility
Include biHelp in the BorderIcons property, set BorderStyle to bsDialog.

Set the HelpContext property of each component to the context id in the help file (you might like to do this in code by creating a .pas file munged from the [MAP] section of the hpj file).

Set the HelpFile in Project | Options.

0
 
LVL 3

Expert Comment

by:Matvey
Comment Utility
borderstyle := bsDialog
bordericons := [biHelp,...]

This makes the question mark appear on the title bar. When it's pressed, the user gets a question mark cursor. Now you have to check where it's clicked (the controls do not receive events), and according to the position, you can display various hints.

To display hints use the THintWindow class.

--Matvey
0
 
LVL 3

Expert Comment

by:Matvey
Comment Utility
Hi Zif, hi Phil... :-)
0
 
LVL 7

Expert Comment

by:BlackMan
Comment Utility
Check ProHelp, it is just great...
http://www.igweb.pair.com/
If you want to program it yourself, there is an article about it here, http://www.delumpa.com/tips/forms/forms14.htm, but it is tough work...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now