]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/tooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxToolTip class - tooltip control
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 1999 Robert Roebling, Vadim Zeitlin
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 class wxToolTip
: public wxObject
16 wxToolTip(const wxString
&tip
);
21 void SetTip(const wxString
& tip
);
22 const wxString
& GetTip() const { return m_text
; }
24 // the window we're associated with
25 void SetWindow(wxWindow
*win
);
26 wxWindow
*GetWindow() const { return m_window
; }
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
);
35 void RelayEvent(WXMSG
*msg
);
38 // create the tooltip ctrl for our parent frame if it doesn't exist yet
39 // and return its window handle
40 WXHWND
GetToolTipCtrl();
42 // remove this tooltip from the tooltip control
45 wxString m_text
; // tooltip text
46 wxWindow
*m_window
; // window we're associated with