From daa7ae0c3053885e0c605af99c8c62c92dae016e Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 7 Jan 2005 22:09:08 +0000 Subject: [PATCH] Corrected drag effect for tree control. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 5836734469..ca9a9565df 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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(); -- 2.45.2