Solved

Windows "What's This?" feature

Posted on 2000-04-12
4
155 Views
Last Modified: 2010-04-04
How do you implement  the windows "What this?" feature in Delphi apps to provide fast and easy help to users.
0
Comment
Question by:mem100
4 Comments
 
LVL 4

Expert Comment

by:jeurk
ID: 2708308
Add a button with a nice '?' icon and
Place in the OnClick event of the button the following code:
PostMessage (Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0);
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2708990
You can create a hintwindow like this:

var hw: THintWindow;

hw := THintWindow.Create(Self);
hw.Color := clInfoBk;
hw.ActivateHint(Rect(300, 300, 500, 400), 'Put your text here...');
0
 
LVL 10

Expert Comment

by:ptmcomp
ID: 2717244
You can paint the button in the WM_NCPAINT message handler. And in the WM_NCLBUTTONUP message handler you can detect the click. Is there someone who knows how to do this easier?
0
 

Accepted Solution

by:
pdgxpert earned 50 total points
ID: 2724264
whatsup...

jeurk was sorta on the right track...

if you are planning on making a help file for your application, you will notice that you have the option of creating HelpID's which are links to specific topics and/or pages within your help file.

in order for the "?" (biHelp) button to work you must have a component with a HelpContext property... in this, type the number of the HelpID you would like associated...

when the user clicks the "?" then the object they would like to recieve the context help on, your program will generate an OnHelp event that will display the contents of that page, in a nice little floating window like other progs.

>> remember to associate the help file with your application... otherwise this will not work  
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now