Solved

Tool Tip Delay?

Posted on 2002-03-27
6
247 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
to transfer string from C lanaguage to VBA 4 72
Added a column screws up code 5 63
vbModal 12 57
Copy a range from 1..n excel sheets to one destination sheet 2 55
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

839 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