Changed Shift+Arrow handling

Fixed Ctrl/Shift/Alt/Meta handling in generated events.
Added display of Ctrl/Shift/Alt/Meta status to griddemo.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2000-03-09 13:57:02 +00:00
parent b6fa52db66
commit d95b0c2ba0
5 changed files with 190 additions and 115 deletions

View File

@@ -622,7 +622,11 @@ void GridFrame::OnSelectCell( wxGridEvent& ev )
else
logBuf << "Deselected ";
logBuf << "cell at row " << ev.GetRow()
<< " col " << ev.GetCol();
<< " col " << ev.GetCol()
<< " ( ControlDown: "<<ev.ControlDown()
<< ", ShiftDown: "<<ev.ShiftDown()
<< ", AltDown: "<<ev.AltDown()
<< ", MetaDown: "<<ev.MetaDown()<< " )";
wxLogMessage( "%s", logBuf.c_str() );
// you must call Skip() if you want the default processing
@@ -640,8 +644,11 @@ void GridFrame::OnRangeSelected( wxGridRangeSelectEvent& ev )
logBuf << "cells from row " << ev.GetTopRow()
<< " col " << ev.GetLeftCol()
<< " to row " << ev.GetBottomRow()
<< " col " << ev.GetRightCol();
<< " col " << ev.GetRightCol()
<< " ( ControlDown: "<<ev.ControlDown()
<< ", ShiftDown: "<<ev.ShiftDown()
<< ", AltDown: "<<ev.AltDown()
<< ", MetaDown: "<<ev.MetaDown()<< " )";
wxLogMessage( "%s", logBuf.c_str() );
ev.Skip();