]>
git.saurik.com Git - wxWidgets.git/blob - interface/tooltip.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxToolTip
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This class holds information about a tooltip associated with a window (see
14 wxWindow::SetToolTip()).
16 The four static methods, wxToolTip::Enable(), wxToolTip::SetDelay()
17 wxToolTip::SetAutoPop() and wxToolTip::SetReshow() can be used to globally
18 alter tooltips behaviour.
23 class wxToolTip
: public wxObject
29 wxToolTip(const wxString
& tip
);
32 Enable or disable tooltips globally.
34 @note May not be supported on all platforms (eg. wxCocoa).
36 static void Enable(bool flag
);
41 wxString
GetTip() const;
44 Get the associated window.
46 wxWindow
* GetWindow() const;
49 Set the delay after which the tooltip disappears or how long a tooltip
52 @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
54 static void SetAutoPop(long msecs
);
57 Set the delay after which the tooltip appears.
59 @note May not be supported on all platforms (eg. wxCocoa).
61 static void SetDelay(long msecs
);
64 Set the delay between subsequent tooltips to appear.
66 @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
68 static void SetReshow(long msecs
);
73 void SetTip(const wxString
& tip
);