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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep Tool Tip Text on screen for longer than 5 seconds? 4

Status
Not open for further replies.

CMcC

Programmer
Feb 5, 2002
196
US
HI all a-
Is there a way to keep the tool tips up longer than 5 seconds? I have some slow readers? They asked if the tool tips can stay indefinitely while the cursor is over the button that the tool tip is associated with.
Any suggestions would be wonderful!
Thanks
Cmcc
 
I believe it's not possible with native tooltips. However, you can use your own tooltips.

Check Form HOME() + "samples\solution\toledo\systray_sample" of how to create balloon-type tooltip.
 
Thank you Markros. I will give it a try!
Cmcc
 
For another way of making your own tooltips, see my article in FoxPro Advisor, October/November 2006. (Or at for FPA subscribers).

Basically, it involves creating a form without a border or title bar, that pops up when you hover the mouse over a control. It's not at all difficult.

Mike




__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
I'd think that time is a Windows setting. I don't know if it's exposed in the Control Panel somewhere, but I found this paragraph in an MSDN article, linked below:

A ToolTip control actually has three time-out durations associated with it. The initial duration is the time that the mouse pointer must remain stationary within the bounding rectangle of a tool before the ToolTip window is displayed. The reshow duration is the length of the delay before subsequent ToolTip windows are displayed when the pointer moves from one tool to another. The pop-up duration is the time that the ToolTip window remains displayed before it is hidden. That is, if the pointer remains stationary within the bounding rectangle afterthe ToolTip window is displayed, the ToolTip window is automatically hidden at the end of the pop-up duration. You can adjust all of the time-out durations by using the TTM_SETDELAYTIME message.

 
Good info, thanks for the link. This doesn't apply to VFP native tooltips, though.
 
I'll bet that VFP's tooltips are implemented as standard Windows tooltips. I just don't know how to get inside them.

You'd think this setting would live somewhere in the Control Panel, but I tried the obvious places.

Tamar
 
Tamar: you are right

Code:
* Copied from help file
* (Default) Displays the ToolTip for the amount of time specified by Windows.

_tooltiptimeout = -1

 
* Displays the ToolTip until the mouse is moved.
_tooltiptimeout = 0
 

* Amount of time in milliseconds to display the ToolTip.
_tooltiptimeout = 2000  
 

* Omit the nValue parameter to determine the current
? _TOOLTIPTIMEOUT
 
Ouch, I don't often forget that something is actually in the language. Appears to be a VFP 9 addition. (Guess I must not have written that chapter of What's New.)

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top