]>
Commit | Line | Data |
---|---|---|
0e320a79 | 1 | /////////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/os2/tooltip.h |
0e320a79 | 3 | // Purpose: wxToolTip class - tooltip control |
d90895ac | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
d90895ac | 6 | // Created: 10/17/99 |
d90895ac | 7 | // Copyright: (c) David Webster |
65571936 | 8 | // Licence: wxWindows licence |
0e320a79 DW |
9 | /////////////////////////////////////////////////////////////////////////////// |
10 | ||
20ceebaa MW |
11 | #ifndef _WX_OS2_TOOLTIP_H_ |
12 | #define _WX_OS2_TOOLTIP_H_ | |
13 | ||
0e320a79 DW |
14 | class wxToolTip : public wxObject |
15 | { | |
16 | public: | |
17 | // ctor & dtor | |
05facebb | 18 | wxToolTip(const wxString &rsTip); |
0e320a79 DW |
19 | virtual ~wxToolTip(); |
20 | ||
05facebb DW |
21 | // |
22 | // Accessors | |
23 | // | |
24 | inline const wxString& GetTip(void) const { return m_sText; } | |
25 | inline wxWindow* GetWindow(void) const { return m_pWindow; } | |
0e320a79 | 26 | |
05facebb DW |
27 | void SetTip(const wxString& rsTip); |
28 | inline void SetWindow(wxWindow* pWin) { m_pWindow = pWin; } | |
0e320a79 | 29 | |
7cdc9c61 SN |
30 | // controlling tooltip behaviour: globally change tooltip parameters |
31 | // enable or disable the tooltips globally | |
7e1e6965 | 32 | static void Enable(bool WXUNUSED(flag)) {} |
7cdc9c61 | 33 | // set the delay after which the tooltip appears |
7e1e6965 | 34 | static void SetDelay(long WXUNUSED(milliseconds)) {} |
becac1ef VZ |
35 | // set the delay after which the tooltip disappears or how long the tooltip remains visible |
36 | static void SetAutoPop(long WXUNUSED(milliseconds)) {} | |
37 | // set the delay between subsequent tooltips to appear | |
38 | static void SetReshow(long WXUNUSED(milliseconds)) {} | |
7cdc9c61 | 39 | |
05facebb DW |
40 | // |
41 | // Implementation | |
42 | // | |
43 | void DisplayToolTipWindow(const wxPoint& rPos); | |
44 | void HideToolTipWindow(void); | |
0e320a79 DW |
45 | |
46 | private: | |
05facebb | 47 | void Create(const wxString &rsTip); |
0e320a79 | 48 | |
05facebb DW |
49 | HWND m_hWnd; |
50 | wxString m_sText; // tooltip text | |
51 | wxWindow* m_pWindow; // window we're associated with | |
52 | }; // end of CLASS wxToolTip | |
20ceebaa MW |
53 | |
54 | #endif // _WX_OS2_TOOLTIP_H_ |