Solved

show hints

Posted on 2003-11-26
11
854 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 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
Industry Leaders: 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

Independent Software Vendors: 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

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…
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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