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:
@@ -1523,6 +1523,7 @@ protected:
|
||||
|
||||
wxGridCellCoords m_selectingTopLeft;
|
||||
wxGridCellCoords m_selectingBottomRight;
|
||||
wxGridCellCoords m_selectingKeyboard;
|
||||
wxGridSelection *m_selection;
|
||||
wxColour m_selectionBackground;
|
||||
wxColour m_selectionForeground;
|
||||
|
@@ -29,13 +29,25 @@ public:
|
||||
bool IsSelection();
|
||||
bool IsInSelection ( int row, int col );
|
||||
void SetSelectionMode(wxGrid::wxGridSelectionModes selmode);
|
||||
void SelectRow( int row, bool addToSelected = FALSE );
|
||||
void SelectCol( int col, bool addToSelected = FALSE );
|
||||
void SelectRow( int row, bool addToSelected = FALSE,
|
||||
bool ControlDown = FALSE, bool ShiftDown = FALSE,
|
||||
bool AltDown = FALSE, bool MetaDown = FALSE );
|
||||
void SelectCol( int col, bool addToSelected = FALSE,
|
||||
bool ControlDown = FALSE, bool ShiftDown = FALSE,
|
||||
bool AltDown = FALSE, bool MetaDown = FALSE );
|
||||
void SelectBlock( int topRow, int leftCol,
|
||||
int bottomRow, int rightCol,
|
||||
wxMouseEvent* event = 0, bool sendEvent = TRUE );
|
||||
void SelectCell( int row, int col, bool sendEvent = TRUE );
|
||||
void ToggleCellSelection( int row, int col);
|
||||
bool ControlDown = FALSE, bool ShiftDown = FALSE,
|
||||
bool AltDown = FALSE, bool MetaDown = FALSE,
|
||||
bool sendEvent = TRUE );
|
||||
void SelectCell( int row, int col,
|
||||
bool ControlDown = FALSE, bool ShiftDown = FALSE,
|
||||
bool AltDown = FALSE, bool MetaDown = FALSE,
|
||||
bool sendEvent = TRUE );
|
||||
void ToggleCellSelection( int row, int col,
|
||||
bool ControlDown = FALSE,
|
||||
bool ShiftDown = FALSE,
|
||||
bool AltDown = FALSE, bool MetaDown = FALSE );
|
||||
void ClearSelection();
|
||||
|
||||
void UpdateRows( size_t pos, int numRows );
|
||||
|
Reference in New Issue
Block a user