Solved

How to reduce the Tooltip delay on Toolbars

Posted on 2002-04-26
3
269 Views
Last Modified: 2013-11-20
I have created tooltips for toolbar buttons that are changed dynamically during run-time.
My problem is that the delay (the time the tooltip take to show) is too long.
How can I change this.
Some example code will be appreciated.
Thanks.

0
Comment
Question by:Risibiki
3 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 100 total points
ID: 6970788
MSDN Says

The Tooltip control has been updated to support tracking tooltips. While the control is in tracking mode, a tooltip window can be forced to stay active (TTM_TRACKACTIVATE) and move on the screen (TTM_TRACKPOSITION). The display position can be relative to the tool or in absolute screen coordinates (specified by TTF_ABSOLUTE in TOOLINFO). Tools require the TTF_TRACK flag for tracking support. It's up to the application to move the tip window with TTM_TRACKPOSITION (it won't happen automatically when using TTF_SUBCLASS). Only one tracking tool may be active at a time. When tracking mode isn't active, tips don't display for tools with the TTF_TRACK flag.
      In addition to tracking support, several other messages have been added to the control along with various updates to structures that support the changes. Display duration times can be controlled with TTM_GETDELAYTIME and TTM_SETDELAYTIME. Margin sizes are set with TTM_ GETMARGIN and TTM_SETMARGIN. TTM_GETMAXTIPWIDTH and TTM_SETMAXTIPWIDTH control the tooltip's maximum display width in pixels. Color can be manipulated with TTM_ GETTIPTEXTCOLOR, TTM_SETTIPTEXTCOLOR, TTM_GETTIPBKCOLOR, and TTM_SETTIPBKCOLOR. If you want to remove a displayed tooltip immediately, use TTM_POP. Finally, to force a redraw, use TTM_UPDATE.

GOOD LUCK
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 178
Separate files macro - Errors on larger data set 18 69
Problem to event 3 96
Not needed 13 112
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

770 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