Corrected drag effect for tree control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3086,7 +3086,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
// remember the old cursor because we will change it while
|
// remember the old cursor because we will change it while
|
||||||
// dragging
|
// dragging
|
||||||
m_oldCursor = m_cursor;
|
m_oldCursor = m_cursor;
|
||||||
|
|
||||||
// in a single selection control, hide the selection temporarily
|
// in a single selection control, hide the selection temporarily
|
||||||
if ( !(GetWindowStyleFlag() & wxTR_MULTIPLE) )
|
if ( !(GetWindowStyleFlag() & wxTR_MULTIPLE) )
|
||||||
{
|
{
|
||||||
@@ -3102,7 +3102,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
CaptureMouse();
|
CaptureMouse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( event.Moving() )
|
else if ( event.Dragging() )
|
||||||
{
|
{
|
||||||
if ( item != m_dropTarget )
|
if ( item != m_dropTarget )
|
||||||
{
|
{
|
||||||
@@ -3114,7 +3114,7 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
// highlight the current drop target if any
|
// highlight the current drop target if any
|
||||||
DrawDropEffect(m_dropTarget);
|
DrawDropEffect(m_dropTarget);
|
||||||
|
|
||||||
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
#if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXGTK20__)
|
||||||
Update();
|
Update();
|
||||||
#else
|
#else
|
||||||
wxYieldIfNeeded();
|
wxYieldIfNeeded();
|
||||||
|
Reference in New Issue
Block a user