?
Solved

Windows "What's This?" feature

Posted on 2000-04-12
4
Medium Priority
?
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

764 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