]> git.saurik.com Git - wxWidgets.git/commitdiff
Document how to get the previous selection in wxEVT_GRID_SELECT_CELL handler.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Dec 2010 13:12:56 +0000 (13:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Dec 2010 13:12:56 +0000 (13:12 +0000)
Make explicit the fact that the cell coordinates in the event are the
coordinates of the newly selected cell and that the previously selected one is
available from wxGrid itself.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/grid.h

index 6203daa4db98ef58ef32e5f74661b45ebe4fa0b0..90c5d9a3a5cc96dd5a18a395dd02b6c0fba452e1 100644 (file)
@@ -4251,6 +4251,10 @@ public:
 
     /**
         Column at which the event occurred.
+
+        Notice that for a @c wxEVT_GRID_SELECT_CELL event this column is the
+        column of the newly selected cell while the previously selected cell
+        can be retrieved using wxGrid::GetGridCursorCol().
     */
     virtual int GetCol();
 
@@ -4261,6 +4265,10 @@ public:
 
     /**
         Row at which the event occurred.
+
+        Notice that for a @c wxEVT_GRID_SELECT_CELL event this row is the row
+        of the newly selected cell while the previously selected cell can be
+        retrieved using wxGrid::GetGridCursorRow().
     */
     virtual int GetRow();