?
Solved

show hints

Posted on 2003-11-26
11
Medium Priority
?
856 Views
Last Modified: 2010-04-05
hi all,

it is possibly to force the app show hints on particular control (such as editbox)

thx
0
Comment
Question by:lamtl354
[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
  • 3
  • 2
  • 2
  • +2
11 Comments
 
LVL 5

Accepted Solution

by:
snehanshu earned 100 total points
ID: 9829578
lamtl354,
   All TControls have a showhint property and a hint property.
  You could set ShowHint property of your editbox to true and set the hint property.
  HTH,
...Shu
0
 
LVL 2

Assisted Solution

by:TheLeader
TheLeader earned 100 total points
ID: 9829889
a simple example
you can make this in the object inspecter, Or in the code as button if you would like

Edit1.Hint := 'yuppi';
Edit1.ShowHint := True;

hope it helped.
0
 

Author Comment

by:lamtl354
ID: 9830137
fisrt, thx.
i would to know whether possible to force the hints of particular controls show up not show up only when i put my mouse over it..
thx & hope my questions is clear to understand
0
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!

 
LVL 11

Expert Comment

by:ZhaawZ
ID: 9837133
I don't know how to force showing hint of a control, but you can use THintWindow and make your own hint ..
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9842399
>>thx & hope my questions is clear to understand
no, it is not.
>>i would to know whether possible to force the hints of particular controls show up not show up only when i put my mouse over it..
AFAIK, that is what hints do.

...Shu
0
 
LVL 2

Expert Comment

by:Robn
ID: 9851644
Application.ActivateHint();
0
 
LVL 2

Expert Comment

by:Robn
ID: 9851753
sorry, let me post an example.
Create a new project. On the properties of the form, set Hint to some value (eg: "This is a hint"). Set ShowHint to True.
Create a mouse move event and place this code in the event.

var
  Pnt: TPoint;
begin
  Application.ShowHint := True;
  Pnt := Mouse.CursorPos;
  Application.ActivateHint(Pnt);
end;

You'll notice that as the mouse moves, the hint window follows the cursor.
Application.ActivateHint is passed a Point structure that defines where the hint window should be displayed.

Hope this helps.
Rob
0
 
LVL 11

Expert Comment

by:ZhaawZ
ID: 9851911
Robn, will this hint appear even if the cursor is not on object ? (if we will put custom point in Pnt)
I tried this some days ago .. The hint didn't appear..
0
 
LVL 2

Expert Comment

by:Robn
ID: 9851937
this will activate the hint of the current control. If you want to show the hint outside of the form, you can't. However, you can set the hint of the control you want to display the hint on and activate it this way.
What is it you're trying to show a hint on?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

800 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