]> git.saurik.com Git - wxWidgets.git/commitdiff
Generate EVT_TOOL_ENTER when the user moves the mouse out of the toolbar
authorMattia Barbon <mbarbon@cpan.org>
Thu, 2 May 2002 20:03:19 +0000 (20:03 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Thu, 2 May 2002 20:03:19 +0000 (20:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index 7c6515ff121ade578094738c8e1286391acfa22e..c160e85885de4d19a17afdcffae224ad17cba91e 100644 (file)
@@ -1148,6 +1148,13 @@ void wxToolBar::OnSysColourChanged(wxSysColourChangedEvent& event)
 
 void wxToolBar::OnMouseEvent(wxMouseEvent& event)
 {
+    if (event.Leaving() && m_pInTool)
+    {
+        OnMouseEnter( -1 );
+        event.Skip();
+        return;
+    }
+
     if (event.RightDown())
     {
         // For now, we don't have an id. Later we could