]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/tooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/tooltip.h
3 // Purpose: wxToolTip class - tooltip control
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_OS2_TOOLTIP_H_
12 #define _WX_OS2_TOOLTIP_H_
14 class wxToolTip
: public wxObject
18 wxToolTip(const wxString
&rsTip
);
24 inline const wxString
& GetTip(void) const { return m_sText
; }
25 inline wxWindow
* GetWindow(void) const { return m_pWindow
; }
27 void SetTip(const wxString
& rsTip
);
28 inline void SetWindow(wxWindow
* pWin
) { m_pWindow
= pWin
; }
30 // controlling tooltip behaviour: globally change tooltip parameters
31 // enable or disable the tooltips globally
32 static void Enable(bool WXUNUSED(flag
)) {}
33 // set the delay after which the tooltip appears
34 static void SetDelay(long WXUNUSED(milliseconds
)) {}
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
)) {}
43 void DisplayToolTipWindow(const wxPoint
& rPos
);
44 void HideToolTipWindow(void);
47 void Create(const wxString
&rsTip
);
50 wxString m_sText
; // tooltip text
51 wxWindow
* m_pWindow
; // window we're associated with
52 }; // end of CLASS wxToolTip
54 #endif // _WX_OS2_TOOLTIP_H_