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?
ToolTips internals Topic is solved
Re: ToolTips internals
Why would you need to retrieve the delay ? A SetDelay() method allow to set how long the tooltip will be displayed.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?
...Or i haven't understood what you're aiming at...
Re: ToolTips internals
I don't want to set it myself. I want to set/use the system default value for that.TrV wrote:Why would you need to retrieve the delay ? A SetDelay() method allow to set how long the tooltip will be displayed.
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?
wx just depends on the system default, it doesn't set the value explicitly.From where does the wx-inbuild tooltips retriev this information?
On Windows, the time is based on the doubleclick delay time:
http://msdn.microsoft.com/en-us/library/bb760404.aspx
Use the source, Luke!
It is an important information.doublemax wrote:On Windows, the time is based on the doubleclick delay time:
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.