Solved

Tool Tip Delay?

Posted on 2002-03-27
6
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

732 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