ToolTips internals Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

ToolTips internals

Post by MoonKid »

I try to create my own tooltip mechanism.

I create a wxTipWindow on a given position.

But I need to close the window myself. It doesn't disapear after an delay.

I know there is a wxToolTip::SetDelay() methode. It would be nice if there be a wxToolTip::GetDelay() methode!

The wx-inbuild-tooltip mechanism (under Windows) work fine and all tooltip's desapear after an delay. Who set this delay? Is it a parameter given by the operation system? How does wx get this parameter?

I want to set that parameter (delay for tooltips) to my own tooltip window, too.

Is it possible? Or is it possible to aks the wxToolTip for their delay?
TrV
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 630
Joined: Wed Jul 04, 2007 1:12 pm

Re: ToolTips internals

Post by TrV »

MoonKid wrote:I know there is a wxToolTip::SetDelay() methode. It would be nice if there be a wxToolTip::GetDelay() methode!
[...]
I want to set that parameter (delay for tooltips) to my own tooltip window, too.
Is it possible? Or is it possible to aks the wxToolTip for their delay?
Why would you need to retrieve the delay ? A SetDelay() method allow to set how long the tooltip will be displayed.

...Or i haven't understood what you're aiming at...
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

Re: ToolTips internals

Post by MoonKid »

TrV wrote:Why would you need to retrieve the delay ? A SetDelay() method allow to set how long the tooltip will be displayed.
I don't want to set it myself. I want to set/use the system default value for that.

If it is not possible I need to ad a delay-/autopopup-option to the option dialog of the application. But ergonomicly/logicly it is not the job of the application to control such parameters.

From where does the wx-inbuild tooltips retriev this information?
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

From where does the wx-inbuild tooltips retriev this information?
wx just depends on the system default, it doesn't set the value explicitly.

On Windows, the time is based on the doubleclick delay time:
http://msdn.microsoft.com/en-us/library/bb760404.aspx
Use the source, Luke!
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

Post by MoonKid »

doublemax wrote:On Windows, the time is based on the doubleclick delay time:
It is an important information.
How can I recieve the doubleclick delay from wx? I mean if there is a wx-way to recieve the doubleclick-time so the code is plattform independent.

Of course I know that I could use GetDoubleClickTime(). But it only works on windows.
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

Use the source, Luke!
Post Reply