+ tipWindowView->SetFocus();
+}
+
+wxTipWindow::~wxTipWindow()
+{
+ if (m_windowPtr)
+ {
+ *m_windowPtr = NULL;
+ }
+}
+
+void wxTipWindow::OnMouseClick(wxMouseEvent& WXUNUSED(event))
+{
+ Close();
+}
+
+void wxTipWindow::OnActivate(wxActivateEvent& event)
+{
+ if (!event.GetActive())
+ Close();
+}
+
+void wxTipWindow::OnKillFocus(wxFocusEvent& WXUNUSED(event))
+{
+ // Under Windows at least, we will get this immediately
+ // because when the view window is focussed, the
+ // tip window goes out of focus.
+#ifdef __WXGTK__
+ Close();
+#endif
+}
+
+// ----------------------------------------------------------------------------
+// wxTipWindowView
+// ----------------------------------------------------------------------------
+
+wxTipWindowView::wxTipWindowView(wxWindow *parent)
+ : wxWindow(parent, -1,
+ wxDefaultPosition, wxDefaultSize,
+ wxNO_BORDER)
+{
+ // set colours
+ SetForegroundColour(*wxBLACK);
+ SetBackgroundColour(wxColour(255, 255, 231));
+ m_creationTime = wxGetLocalTime();