From bb778cae9972d3a3b04fa1d1c05450fd1dd5ee13 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 16 Jul 2008 16:06:23 +0000 Subject: [PATCH] emphasize the fact that GetSelectedCols/Rows() is not sufficient to get the selection (#4732) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/grid.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/interface/wx/grid.h b/interface/wx/grid.h index 65aa667f15..47a223594c 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -1851,11 +1851,24 @@ public: /** Returns an array of selected cols. + + Please notice that this method alone is not sufficient to find all the + selected columns, see the explanation in GetSelectedRows() + documentation for more details. */ wxArrayInt GetSelectedCols() const; /** Returns an array of selected rows. + + Note that this array contains only the rows which were individually + selected (using the mouse with the row header or combinations involving + @c Ctrl key for selecting individual rows). In particular if the user + selects many rows at once (e.g. by pressing @c Shift key) this array is + @b not updated because this could mean storing a very large number of + elements in it. So in general to find the current selection you need to + use both this method and GetSelectionBlockTopLeft() and + GetSelectionBlockBottomRight() ones. */ wxArrayInt GetSelectedRows() const; -- 2.45.2