]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/tooltip.h
Initial commit of native OS X list ctrl support. Compile tested on Win, Mac, FC4...
[wxWidgets.git] / include / wx / os2 / tooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: msw/tooltip.h
3 // Purpose: wxToolTip class - tooltip control
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/17/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_OS2_TOOLTIP_H_
13 #define _WX_OS2_TOOLTIP_H_
14
15 class wxToolTip : public wxObject
16 {
17 public:
18 // ctor & dtor
19 wxToolTip(const wxString &rsTip);
20 virtual ~wxToolTip();
21
22 //
23 // Accessors
24 //
25 inline const wxString& GetTip(void) const { return m_sText; }
26 inline wxWindow* GetWindow(void) const { return m_pWindow; }
27
28 void SetTip(const wxString& rsTip);
29 inline void SetWindow(wxWindow* pWin) { m_pWindow = pWin; }
30
31 // controlling tooltip behaviour: globally change tooltip parameters
32 // enable or disable the tooltips globally
33 static void Enable(bool WXUNUSED(flag)) {}
34 // set the delay after which the tooltip appears
35 static void SetDelay(long WXUNUSED(milliseconds)) {}
36
37 //
38 // Implementation
39 //
40 void DisplayToolTipWindow(const wxPoint& rPos);
41 void HideToolTipWindow(void);
42
43 private:
44 void Create(const wxString &rsTip);
45
46 HWND m_hWnd;
47 wxString m_sText; // tooltip text
48 wxWindow* m_pWindow; // window we're associated with
49 }; // end of CLASS wxToolTip
50
51 #endif // _WX_OS2_TOOLTIP_H_