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"
23 // ----------------------------------------------------------------------------
25 // ----------------------------------------------------------------------------
27 class WXDLLEXPORT wxTipWindow
: public wxPopupTransientWindow
30 // Supply windowPtr for it to null the given address
31 // when the window has closed.
32 wxTipWindow(wxWindow
*parent
,
34 wxCoord maxLength
= 100, wxTipWindow
** windowPtr
= NULL
);
37 void SetTipWindowPtr(wxTipWindow
** windowPtr
) { m_windowPtr
= windowPtr
; }
39 // calculate the client rect we need to display the text
40 void Adjust(const wxString
& text
, wxCoord maxLength
);
46 void OnMouseClick(wxMouseEvent
& event
);
47 void OnPaint(wxPaintEvent
& event
);
50 wxArrayString m_textLines
;
52 wxTipWindow
** m_windowPtr
;
57 #endif // wxUSE_POPUPWIN
58 #endif // _WX_TIPWIN_H_