1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxTipWindow is a window like the one typically used for
4 // showing the tooltips
5 // Author: Vadim Zeitlin
9 // Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
10 // Licence: wxWindows license
11 ///////////////////////////////////////////////////////////////////////////////
17 #pragma interface "tipwin.h"
20 #include "wx/popupwin.h"
24 // ----------------------------------------------------------------------------
26 // ----------------------------------------------------------------------------
28 class WXDLLEXPORT wxTipWindow
: public wxPopupTransientWindow
31 // Supply windowPtr for it to null the given address
32 // when the window has closed.
33 wxTipWindow(wxWindow
*parent
,
35 wxCoord maxLength
= 100, wxTipWindow
** windowPtr
= NULL
);
38 void SetTipWindowPtr(wxTipWindow
** windowPtr
) { m_windowPtr
= windowPtr
; }
40 // calculate the client rect we need to display the text
41 void Adjust(const wxString
& text
, wxCoord maxLength
);
47 void OnMouseClick(wxMouseEvent
& event
);
48 void OnPaint(wxPaintEvent
& event
);
51 wxArrayString m_textLines
;
53 wxTipWindow
** m_windowPtr
;
58 #endif // wxUSE_POPUPWIN
60 #endif // _WX_TIPWIN_H_