]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/tooltip.h
8ec7fd5abc401b487ab26484e0cf976a14486a4b
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxToolTip class - tooltip control
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 class wxToolTip
: public wxObject
16 wxToolTip(const wxString
&rsTip
);
22 inline const wxString
& GetTip(void) const { return m_sText
; }
23 inline wxWindow
* GetWindow(void) const { return m_pWindow
; }
25 void SetTip(const wxString
& rsTip
);
26 inline void SetWindow(wxWindow
* pWin
) { m_pWindow
= pWin
; }
28 // controlling tooltip behaviour: globally change tooltip parameters
29 // enable or disable the tooltips globally
30 static void Enable(bool flag
) {}
31 // set the delay after which the tooltip appears
32 static void SetDelay(long milliseconds
) {}
37 void DisplayToolTipWindow(const wxPoint
& rPos
);
38 void HideToolTipWindow(void);
41 void Create(const wxString
&rsTip
);
44 wxString m_sText
; // tooltip text
45 wxWindow
* m_pWindow
; // window we're associated with
46 }; // end of CLASS wxToolTip