From 17732cec2894ef8890796441134b3627f2746d8d Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Tue, 19 Oct 1999 07:14:27 +0000 Subject: [PATCH] Added EVT_GRID_SELECT_CELL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 80abb681cb..c8e79066cd 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -1965,6 +1965,12 @@ void wxGrid::OnGridScroll( wxScrollEvent& ev ) void wxGrid::SelectCell( const wxGridCellCoords& coords ) { + if ( SendEvent( EVT_GRID_SELECT_CELL, coords.GetRow(), coords.GetCol() ) ) + { + // the event has been intercepted - do nothing + return; + } + wxClientDC dc( this ); if ( m_currentCellCoords != wxGridNoCellCoords )