Solved

Tool Tip Delay?

Posted on 2002-03-27
6
248 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 28

Expert Comment

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

Cheers
0
Industry Leaders: 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 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 28

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 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