Restricted column/row resizing in cell window to left button for consistency

with label windows and because ending the resize is only handled in
        case of LeftUp() (Fixing #4212).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2008-06-28 00:10:20 +00:00
parent 738b7b9813
commit 5b7668004b

View File

@@ -6020,7 +6020,8 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
} }
else if ( m_cursorMode == WXGRID_CURSOR_RESIZE_ROW ) else if ( event.LeftIsDown() &&
m_cursorMode == WXGRID_CURSOR_RESIZE_ROW )
{ {
int cw, ch, left, dummy; int cw, ch, left, dummy;
m_gridWin->GetClientSize( &cw, &ch ); m_gridWin->GetClientSize( &cw, &ch );
@@ -6038,7 +6039,8 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
dc.DrawLine( left, y, left+cw, y ); dc.DrawLine( left, y, left+cw, y );
m_dragLastPos = y; m_dragLastPos = y;
} }
else if ( m_cursorMode == WXGRID_CURSOR_RESIZE_COL ) else if ( event.LeftIsDown() &&
m_cursorMode == WXGRID_CURSOR_RESIZE_COL )
{ {
int cw, ch, dummy, top; int cw, ch, dummy, top;
m_gridWin->GetClientSize( &cw, &ch ); m_gridWin->GetClientSize( &cw, &ch );