]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/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 ///////////////////////////////////////////////////////////////////////////////
15 class wxToolTip
: public wxObject
19 wxToolTip(const wxString
&tip
);
24 void SetTip(const wxString
& tip
);
25 const wxString
& GetTip() const { return m_text
; }
27 // the window we're associated with
28 void SetWindow(wxWindow
*win
);
29 wxWindow
*GetWindow() const { return m_window
; }
31 // controlling tooltip behaviour: globally change tooltip parameters
32 // enable or disable the tooltips globally
33 static void Enable(bool flag
);
34 // set the delay after which the tooltip appears
35 static void SetDelay(long milliseconds
);
38 //void RelayEvent(WXMSG *msg);
41 // create the tooltip ctrl for our parent frame if it doesn't exist yet
42 // and return its window handle
43 WXHWND
GetToolTipCtrl();
45 // remove this tooltip from the tooltip control
48 wxString m_text
; // tooltip text
49 wxWindow
*m_window
; // window we're associated with