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"
23 #include "wx/popupwin.h"
28 // ----------------------------------------------------------------------------
30 // ----------------------------------------------------------------------------
33 class WXDLLEXPORT wxTipWindow
: public wxPopupTransientWindow
35 class WXDLLEXPORT wxTipWindow
: public wxFrame
38 friend class wxTipWindowView
;
40 // Supply windowPtr for it to null the given address
41 // when the window has closed.
42 wxTipWindow(wxWindow
*parent
,
44 wxCoord maxLength
= 100, wxTipWindow
** windowPtr
= NULL
);
47 void SetTipWindowPtr(wxTipWindow
** windowPtr
) { m_windowPtr
= windowPtr
; }
53 void OnMouseClick(wxMouseEvent
& event
);
55 void OnActivate(wxActivateEvent
& event
);
56 void OnKillFocus(wxFocusEvent
& event
);
60 wxArrayString m_textLines
;
62 wxTipWindow
** m_windowPtr
;
67 #endif // wxUSE_TIPWINDOW
68 #endif // _WX_TIPWIN_H_