Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show a small message when over an object 1

Status
Not open for further replies.

VictorFRodriguez

Programmer
Jan 20, 2001
51
0
0
DO
I want to know how is to indicate to the user the purpose of every object when over in it.
Victor F. Rodriguez
 
Hi..

You might use the tooltip property.. make sure that the forms tooltip property is set to true.

You might use the mousemove event or the statusbar property but (I think anyway) that only works when the object has the focus.



Tom Gahagan
tgahagan@charter.net

Alliance
Computer Solutions



"Music, like sex, is much to important to be left to professionals."
Robert Shaw
 
The ToolTipText property is what you want to use alright. I
have found that it is only activated when the form the object is on is active.

You could also try using the MouseEnter & MouseLeave properties. I think they were introduced in VFP7.

Stewart
 
Hello Victor.

If you are trying to give your users guidance, you might want to consider adding the activeX toolbar to you base form class and add a little code to your base class controls to display their tool tip text on the status bar. Then all you need to do is to traint he users to look at the bottom of the form for any guidance and usage tips.

To display the helpful text, you would just need code like this in the gotFocus of your data entry controls:

Thisform.oStatusBar.Panels( 'status' ).Text = This.ToolTipText



Marcia G. Akins
 
VictorFRodriguez

See also :-

faq184-3121 How can I create ToolTipText with multiple lines?

faq184-3064 How can I add ToolTipText to grid columns and headers?

faq184-3155 How can I create my own statusbar?

FAQ184-2483 - the answer to getting answered.​
Chris [pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top