Control Tip text - setting latency interval

  • Thread starter Thread starter IanB
  • Start date Start date
I

IanB

Hi All

I have a form where a series of buttons are being used to display underlying
information realting to appointements.
I've used the tag, and status bar text to hold data about each appointment
using mousemove to change the caption.
I need to present additional information and intend to use the
ControlTipText setting to provide this.

Now to to the question, I would ideally like to set the latency delay (time
the mouse is over the button before text appears) when loading this form, to
about 1sec rather than the standard 2 seconds and then reset on closing the
form.

Any one know of an API or is this controlled by each application? If so
where?

TIA

Ian B
 
Hi Ian,

You can use Sleep API for making the form opening or closing to wait a
specified period.

Please see the declaration and example below.

'Declare this in the declarations section
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Usage Example:

Private Sub Form_Load()
'Sleep for 5000 milliseconds
Sleep 5000
End Sub

Hope this would be useful to you.

Regards,
Upendra
 
Thanks Steve

Spent quite some time working through this code but no matter what I try, I
cannot alter the TipDelay.
I alter this line I presume!
Const TipDelayIfHidden = 10

Any ideas?

TIA

Ian B
 
It's been several years since I wrote that code. I think there may be an
issue here. I remember that the delay for how long the Tooltip stays visible
works properly but there might have been a problem with the issue you are
describing.

I'm tied up until Friday but will have a look at it then. If oyu send me an
Email on Friday I'll see what I can do. Replace "myDomainName" with my last
name for Email below.
(e-mail address removed)

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top