Solved

Tool Tip Delay?

Posted on 2002-03-27
6
245 Views
Last Modified: 2006-11-17
I've made a toolbar which docks to the top of the windows desktop, like the Office toolbar.  Using CreateWindowEx and tooltips_class32, I've created ballooning tooltips.  Now the question:

When you mouseover on the office toolbar, the tooltip pop up instantly, yet there seems to be a delay with any other application.  Has anyone ever mimiced this?  I've tried it with the ballooning tooltips, and just regular tooltips, with the same results, a delay.



0
Comment
Question by:falkor
6 Comments
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6901892
Hi!

Here's a suggestion:

Why not use a yellow background picturebox with text printed on it (or with a label on it) to be a tooltiptext instead?  From there, you could use a timer upon getting a mousemove event then show the picturebox.

That's it!

glass cookie : )
0
 
LVL 1

Expert Comment

by:Ryan_231
ID: 6901972
0
 
LVL 27

Expert Comment

by:Ark
ID: 6908511
Take a look on my sample at http://www.freevbcode.com/ShowCode.Asp?ID=1232

Cheers
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 1

Author Comment

by:falkor
ID: 6910103
Class_Cookie: I've grown kinda fond of the balloning tooltips, so I really don't want to use another form.

Ryan: I went there too, but that code doesn't seem to do a thing to the delay, although it says it should.

Ark: Unfortunatly, I work in a locked down NT 4 environment, and I'm not allowed to distribut DLL's
0
 
LVL 27

Accepted Solution

by:
Ark earned 50 total points
ID: 6911235
Hi
There is source code there. Actually, you need:

Private Const WM_USER = &H400
Private Const TTM_SETDELAYTIME = (WM_USER + 3)
Private Const TTDT_AUTOPOP = 2
Private Const TTDT_INITIAL = 3

'To set delay time:
    SendMessage hTT, TTM_SETDELAYTIME, TTDT_INITIAL, ByVal lNewDelayTime

'To set visible time:
   SendMessage hTT, TTM_SETDELAYTIME, TTDT_AUTOPOP, ByVal lNewVisibleTime

'Where hTT is ToolTip window's handle

Cheers
0
 
LVL 1

Author Comment

by:falkor
ID: 6912767
I bow to your superior intellect.  Thank you very much
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now