]> git.saurik.com Git - wxWidgets.git/commitdiff
Added EVT_GRID_SELECT_CELL
authorMichael Bedward <mbedward@ozemail.com.au>
Tue, 19 Oct 1999 07:14:27 +0000 (07:14 +0000)
committerMichael Bedward <mbedward@ozemail.com.au>
Tue, 19 Oct 1999 07:14:27 +0000 (07:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 80abb681cbf4c33779090f3b560170c1a2922b6e..c8e79066cdea648267d3ec661c80add202ffaf19 100644 (file)
@@ -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 )