Solved

Windows "What's This?" feature

Posted on 2000-04-12
4
160 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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