Solved

Context help and help files

Posted on 1998-12-21
5
156 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
ID: 1352408
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
ID: 1352409
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
ID: 1352410
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
ID: 1352411
Hi Zif, hi Phil... :-)
0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1352412
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi custom sort exception 6 135
Virtuailstring tree add node to another virtuailstring tree list 4 105
Intraweb download file link ? 1 109
control image tags in a string ? 12 110
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

22 Experts available now in Live!

Get 1:1 Help Now