Solved

show hints

Posted on 2003-11-26
11
852 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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 97
HTML text in the body of an email (delphi code) 12 245
Dev express lookupcombo 3 62
Multi-layered image in FireMonkey 9 87
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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