+ EVT_KILL_FOCUS(wxTipWindow::OnKillFocus)
+ EVT_ACTIVATE(wxTipWindow::OnActivate)
+END_EVENT_TABLE()
+
+// Viewer window to put in the frame
+class wxTipWindowView: public wxWindow
+{
+public:
+ wxTipWindowView(wxWindow *parent);
+
+ // event handlers
+ void OnPaint(wxPaintEvent& event);
+ void OnMouseClick(wxMouseEvent& event);
+ void OnKillFocus(wxFocusEvent& event);
+
+ // calculate the client rect we need to display the text
+ void Adjust(const wxString& text, wxCoord maxLength);
+
+ long m_creationTime;
+
+ DECLARE_EVENT_TABLE()
+};
+
+BEGIN_EVENT_TABLE(wxTipWindowView, wxWindow)
+ EVT_PAINT(wxTipWindowView::OnPaint)
+ EVT_LEFT_DOWN(wxTipWindowView::OnMouseClick)
+ EVT_RIGHT_DOWN(wxTipWindowView::OnMouseClick)
+ EVT_MIDDLE_DOWN(wxTipWindowView::OnMouseClick)
+ EVT_KILL_FOCUS(wxTipWindowView::OnKillFocus)