- Show standard options in wxCmdLineParser usage message (Francesco Montorsi).
- Added wxRect::operator+ (union) and * (intersection) (bdonner).
- Added support for two auxiliary mouse buttons to wxMouseEvent (Chris Weiland).
+- Added wxToolTip::SetAutoPop() and SetReshow() (Jan Knepper)
- Added wxTaskBarIcon::Destroy()
wxGTK:
This class holds information about a tooltip associated with a window
(see \helpref{wxWindow::SetToolTip}{wxwindowsettooltip}).
-The two static methods, \helpref{wxToolTip::Enable}{wxtooltipenable} and
-\helpref{wxToolTip::SetDelay}{wxtooltipsetdelay} can be used to globally
+The four static methods, \helpref{wxToolTip::Enable}{wxtooltipenable},
+\helpref{wxToolTip::SetDelay}{wxtooltipsetdelay}
+\helpref(wxToolTip::SetAutoPop)(wxtooltipsetautopop) and
+\helpref(wxToolTip::SetReshow)(wxtooltipsetreshow) can be used to globally
alter tooltips behaviour.
\wxheading{Derived from}
May not be supported on all platforms (eg. wxCocoa).
+\membersection{wxToolTip::SetAutoPop}\label{wxtooltipsetautopop}
+
+\func{static void}{SetAutoPop}{\param{long }{msecs}}
+
+Set the delay after which the tooltip disappears or how long a
+tooltip remains visible.
+May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
+
+\membersection{wxToolTip::SetReshow}\label{wxtooltipsetreshow}
+
+\func{static void}{SetReshow}{\param{long }{msecs}}
+
+Set the delay between subsequent tooltips to appear.
+May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
+
\membersection{wxToolTip::wxToolTip}\label{wxtooltipwxtooltip}
\func{}{wxToolTip}{\param{const wxString\& }{tip}}
static void Enable(bool flag);
// set the delay after which the tooltip appears
static void SetDelay(long milliseconds);
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long milliseconds);
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long milliseconds);
private:
void SetWindow(wxWindow* window);
// globally change the tooltip parameters
static void Enable( bool flag );
static void SetDelay( long msecs );
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long msecs);
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long msecs);
// get/set the tooltip text
void SetTip( const wxString &tip );
// globally change the tooltip parameters
static void Enable( bool flag );
static void SetDelay( long msecs );
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long msecs);
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long msecs);
wxToolTip( const wxString &tip );
static void Enable(bool flag);
// set the delay after which the tooltip appears
static void SetDelay(long milliseconds);
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long milliseconds);
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long milliseconds);
static void NotifyWindowDelete( WXHWND win ) ;
// implementation only from now on
static void Enable(bool flag);
// set the delay after which the tooltip appears
static void SetDelay(long milliseconds);
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long milliseconds);
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long milliseconds);
// implementation only from now on
// -------------------------------
static void Enable(bool WXUNUSED(flag)) {}
// set the delay after which the tooltip appears
static void SetDelay(long WXUNUSED(milliseconds)) {}
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long WXUNUSED(milliseconds)) {}
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long WXUNUSED(milliseconds)) {}
//
// Implementation
static void Enable(bool flag);
// set the delay after which the tooltip appears
static void SetDelay(long milliseconds);
+ // set the delay after which the tooltip disappears or how long the tooltip remains visible
+ static void SetAutoPop(long milliseconds);
+ // set the delay between subsequent tooltips to appear
+ static void SetReshow(long milliseconds);
// implementation only from now on
// -------------------------------
gtk_tooltips_set_delay( gs_tooltips, (int)msecs );
}
+void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
+{
+}
+
+void wxToolTip::SetReshow( long WXUNUSED(msecs) )
+{
+}
+
#endif // wxUSE_TOOLTIPS
gtk_tooltips_set_delay( ss_tooltips, (int)msecs );
}
+void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
+{
+}
+
+void wxToolTip::SetReshow( long WXUNUSED(msecs) )
+{
+}
+
#endif
s_ToolTipDelay = msecs ;
}
+void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
+{
+}
+
+void wxToolTip::SetReshow( long WXUNUSED(msecs) )
+{
+}
+
void wxToolTip::RelayEvent( wxWindow *win , wxMouseEvent &event )
{
if ( s_ShowToolTips )
TTDT_INITIAL, milliseconds);
}
+void wxToolTip::SetAutoPop(long milliseconds)
+{
+ SendTooltipMessageToAll(ms_hwndTT, TTM_SETDELAYTIME,
+ TTDT_AUTOPOP, milliseconds);
+}
+
+void wxToolTip::SetReshow(long milliseconds)
+{
+ SendTooltipMessageToAll(ms_hwndTT, TTM_SETDELAYTIME,
+ TTDT_RESHOW, milliseconds);
+}
+
// ---------------------------------------------------------------------------
// implementation helpers
// ---------------------------------------------------------------------------
{
}
+void wxToolTip::SetAutoPop( long WXUNUSED(milliseconds) )
+{
+}
+
+void wxToolTip::SetReshow( long WXUNUSED(milliseconds) )
+{
+}
+
// ---------------------------------------------------------------------------
// implementation helpers
// ---------------------------------------------------------------------------