]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected drag effect for tree control.
authorRobert Roebling <robert@roebling.de>
Fri, 7 Jan 2005 22:09:08 +0000 (22:09 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 7 Jan 2005 22:09:08 +0000 (22:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 5836734469c3298931ab8e12e0ba6b51b3a04431..ca9a9565dffd741c14f3561445bc71ed8152bd2e 100644 (file)
@@ -3086,7 +3086,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
             // remember the old cursor because we will change it while
             // dragging
             m_oldCursor = m_cursor;
-
+            
             // in a single selection control, hide the selection temporarily
             if ( !(GetWindowStyleFlag() & wxTR_MULTIPLE) )
             {
@@ -3102,7 +3102,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
             CaptureMouse();
         }
     }
-    else if ( event.Moving() )
+    else if ( event.Dragging() )
     {
         if ( item != m_dropTarget )
         {
@@ -3114,7 +3114,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
             // highlight the current drop target if any
             DrawDropEffect(m_dropTarget);
 
-#if defined( __WXMSW__ ) || defined(__WXMAC__)
+#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXGTK20__)
             Update();
 #else
             wxYieldIfNeeded();