don't capture the mouse when just moving it in the grid (replaces patch 1779923) [backport of r50010 from trunk]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-19 13:14:54 +00:00
parent 1ed8248cc8
commit 20d78b39b2

View File

@@ -6246,7 +6246,7 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL ) if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL )
{ {
if ( CanDragRowSize() && CanDragGridSize() ) if ( CanDragRowSize() && CanDragGridSize() )
ChangeCursorMode(WXGRID_CURSOR_RESIZE_ROW); ChangeCursorMode(WXGRID_CURSOR_RESIZE_ROW, NULL, false);
} }
} }
else if ( dragCol >= 0 ) else if ( dragCol >= 0 )
@@ -6256,7 +6256,7 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL ) if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL )
{ {
if ( CanDragColSize() && CanDragGridSize() ) if ( CanDragColSize() && CanDragGridSize() )
ChangeCursorMode(WXGRID_CURSOR_RESIZE_COL); ChangeCursorMode(WXGRID_CURSOR_RESIZE_COL, NULL, false);
} }
} }
else // Neither on a row or col edge else // Neither on a row or col edge