+// 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);
+#if !wxUSE_POPUPWIN
+ void OnKillFocus(wxFocusEvent& event);
+#endif
+ // calculate the client rect we need to display the text
+ void Adjust(const wxString& text, wxCoord maxLength);
+
+private:
+ long m_creationTime;
+ wxTipWindow* m_parent;
+
+ 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)
+#if !wxUSE_POPUPWIN
+ EVT_KILL_FOCUS(wxTipWindowView::OnKillFocus)
+#endif
+END_EVENT_TABLE()
+