]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/tooltip.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxToolTip class - tooltip control
4 // Author: Stefan Csomor
8 // Copyright: (c) 1999 Robert Roebling, Vadim Zeitlin, Stefan Csomor
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
13 class wxToolTip
: public wxObject
17 wxToolTip(const wxString
&tip
);
22 void SetTip(const wxString
& tip
);
23 const wxString
& GetTip() const { return m_text
; }
25 // the window we're associated with
26 void SetWindow(wxWindow
*win
);
27 wxWindow
*GetWindow() const { return m_window
; }
29 // controlling tooltip behaviour: globally change tooltip parameters
30 // enable or disable the tooltips globally
31 static void Enable(bool flag
);
32 // set the delay after which the tooltip appears
33 static void SetDelay(long milliseconds
);
34 static void NotifyWindowDelete( WXHWND win
) ;
36 // implementation only from now on
37 // -------------------------------
39 // should be called in response to mouse events
40 static void RelayEvent(wxWindow
*win
, wxMouseEvent
&event
);
41 static void RemoveToolTips();
44 wxString m_text
; // tooltip text
45 wxWindow
*m_window
; // window we're associated with