Solved

show hints

Posted on 2003-11-26
11
849 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
  • 3
  • 2
  • 2
  • +2
11 Comments
 
LVL 5

Accepted Solution

by:
snehanshu earned 25 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 25 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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…

776 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