]>
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
14 (see wxWindow::SetToolTip).
16 The four static methods, wxToolTip::Enable,
18 wxToolTip::SetAutoPop and
19 wxToolTip::SetReshow can be used to globally
20 alter tooltips behaviour.
25 class wxToolTip
: public wxObject
31 wxToolTip(const wxString
& tip
);
34 Enable or disable tooltips globally.
35 May not be supported on all platforms (eg. wxCocoa).
37 static void Enable(bool flag
);
42 wxString
GetTip() const;
45 Get the associated window.
47 wxWindow
* GetWindow() const;
50 Set the delay after which the tooltip disappears or how long a
51 tooltip remains visible.
52 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.
58 May not be supported on all platforms (eg. wxCocoa).
60 static void SetDelay(long msecs
);
63 Set the delay between subsequent tooltips to appear.
64 May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
66 static void SetReshow(long msecs
);
71 void SetTip(const wxString
& tip
);