// headers
// ----------------------------------------------------------------------------
-// For compilers that support precompilatixon, includes "wx/wx.h".
+// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
+#if wxUSE_TIPWINDOW
+
+#include "wx/tipwin.h"
+
#ifndef WX_PRECOMP
#include "wx/dcclient.h"
+ #include "wx/timer.h"
+ #include "wx/settings.h"
#endif // WX_PRECOMP
-#ifdef __WXGTK__
- #include <gtk/gtk.h>
-#endif
-#include "wx/tipwin.h"
-
-#if wxUSE_TIPWINDOW
-
-#include "wx/timer.h"
-#include "wx/settings.h"
// ----------------------------------------------------------------------------
// constants
Position(wxPoint(x, y), wxSize(0,0));
Popup(m_view);
#ifdef __WXGTK__
- if (!GTK_WIDGET_HAS_GRAB(m_widget))
- gtk_grab_add( m_widget );
+ m_view->CaptureMouse();
#endif
#else
Move(x, y);
}
#ifdef wxUSE_POPUPWIN
#ifdef __WXGTK__
- if (GTK_WIDGET_HAS_GRAB(m_widget))
- gtk_grab_remove( m_widget );
+ if ( m_view->HasCapture() )
+ m_view->ReleaseMouse();
#endif
#endif
}
#if wxUSE_POPUPWIN
Show(false);
#ifdef __WXGTK__
- if (GTK_WIDGET_HAS_GRAB(m_widget))
- gtk_grab_remove( m_widget );
+ if ( m_view->HasCapture() )
+ m_view->ReleaseMouse();
#endif
Destroy();
#else
const wxRect& rectBound = m_parent->m_rectBound;
if ( rectBound.width &&
- !rectBound.Inside(ClientToScreen(event.GetPosition())) )
+ !rectBound.Contains(ClientToScreen(event.GetPosition())) )
{
// mouse left the bounding rect, disappear
m_parent->Close();