]> git.saurik.com Git - wxWidgets.git/blame - interface/tooltip.h
was incorrectly forcing the font to 12 in most cases, fixes #4745
[wxWidgets.git] / interface / tooltip.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: tooltip.h
e54c96f1 3// Purpose: interface of wxToolTip
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxToolTip
11 @wxheader{tooltip.h}
7c913512 12
f992f2ae
BP
13 This class holds information about a tooltip associated with a window (see
14 wxWindow::SetToolTip()).
7c913512 15
f992f2ae
BP
16 The four static methods, wxToolTip::Enable(), wxToolTip::SetDelay()
17 wxToolTip::SetAutoPop() and wxToolTip::SetReshow() can be used to globally
23324ae1 18 alter tooltips behaviour.
7c913512 19
23324ae1
FM
20 @library{wxcore}
21 @category{help}
22*/
23class wxToolTip : public wxObject
24{
25public:
26 /**
27 Constructor.
28 */
29 wxToolTip(const wxString& tip);
30
31 /**
32 Enable or disable tooltips globally.
f992f2ae
BP
33
34 @note May not be supported on all platforms (eg. wxCocoa).
23324ae1
FM
35 */
36 static void Enable(bool flag);
37
38 /**
39 Get the tooltip text.
40 */
328f5751 41 wxString GetTip() const;
23324ae1
FM
42
43 /**
44 Get the associated window.
45 */
328f5751 46 wxWindow* GetWindow() const;
23324ae1
FM
47
48 /**
f992f2ae
BP
49 Set the delay after which the tooltip disappears or how long a tooltip
50 remains visible.
51
52 @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
23324ae1
FM
53 */
54 static void SetAutoPop(long msecs);
55
56 /**
57 Set the delay after which the tooltip appears.
f992f2ae
BP
58
59 @note May not be supported on all platforms (eg. wxCocoa).
23324ae1
FM
60 */
61 static void SetDelay(long msecs);
62
63 /**
64 Set the delay between subsequent tooltips to appear.
f992f2ae
BP
65
66 @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos).
23324ae1
FM
67 */
68 static void SetReshow(long msecs);
69
70 /**
71 Set the tooltip text.
72 */
73 void SetTip(const wxString& tip);
74};
e54c96f1 75