bool IsSelection();
bool IsInSelection ( int row, int col );
void SetSelectionMode(wxGrid::wxGridSelectionModes selmode);
- void SelectRow( int row, bool addToSelected = FALSE,
+ void SelectRow( int row,
bool ControlDown = FALSE, bool ShiftDown = FALSE,
bool AltDown = FALSE, bool MetaDown = FALSE );
- void SelectCol( int col, bool addToSelected = FALSE,
+ void SelectCol( int col,
bool ControlDown = FALSE, bool ShiftDown = FALSE,
bool AltDown = FALSE, bool MetaDown = FALSE );
void SelectBlock( int topRow, int leftCol,
}
}
-void wxGridSelection::SelectRow( int row, bool addToSelected,
+void wxGridSelection::SelectRow( int row,
bool ControlDown, bool ShiftDown,
bool AltDown, bool MetaDown )
{
m_grid->GetEventHandler()->ProcessEvent(gridEvt);
}
-void wxGridSelection::SelectCol( int col, bool addToSelected,
+void wxGridSelection::SelectCol( int col,
bool ControlDown, bool ShiftDown,
bool AltDown, bool MetaDown )
{
n--; count--;
if ( !m_grid->GetBatchCount() )
((wxWindow *)m_grid->m_gridWin)->Refresh( FALSE, &r );
- return;
// Send event
wxGridEvent gridEvt( m_grid->GetId(),
ControlDown, ShiftDown,
AltDown, MetaDown );
m_grid->GetEventHandler()->ProcessEvent(gridEvt);
+ return;
}
}
}