+ // Send Event, if not disabled.
+ if ( sendEvent )
+ {
+ if ( mouseEv == 0)
+ {
+ wxGridRangeSelectEvent gridEvt( m_grid->GetId(),
+ wxEVT_GRID_RANGE_SELECT,
+ m_grid,
+ wxGridCellCoords( topRow, leftCol ),
+ wxGridCellCoords( bottomRow, rightCol ) );
+ m_grid->GetEventHandler()->ProcessEvent(gridEvt);
+ }
+ else
+ {
+ wxGridRangeSelectEvent gridEvt( m_grid->GetId(),
+ wxEVT_GRID_RANGE_SELECT,
+ m_grid,
+ wxGridCellCoords( topRow, leftCol ),
+ wxGridCellCoords( bottomRow, rightCol ),
+ TRUE,
+ mouseEv->ControlDown(),
+ mouseEv->ShiftDown(),
+ mouseEv->AltDown(),
+ mouseEv->MetaDown() );
+ m_grid->GetEventHandler()->ProcessEvent(gridEvt);
+ }
+ }