From: Vadim Zeitlin Date: Tue, 10 Aug 2010 18:57:36 +0000 (+0000) Subject: Correct documentation of majorDimension in wxRadioBox ctor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/18ff59a401eaf823e23759e75110ea42159b38f7 Correct documentation of majorDimension in wxRadioBox ctor. The default value of this parameter is 0, not 1. Also add the explanation of what using 0 actually means. Closes #12325. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/wx/radiobox.h b/interface/wx/radiobox.h index 9b73f76fbe..7122504010 100644 --- a/interface/wx/radiobox.h +++ b/interface/wx/radiobox.h @@ -69,7 +69,8 @@ public: @param majorDimension Specifies the maximum number of rows (if style contains @c wxRA_SPECIFY_ROWS) or columns (if style contains - @c wxRA_SPECIFY_COLS) for a two-dimensional radiobox. + @c wxRA_SPECIFY_COLS) for a two-dimensional radiobox. The default + value of 0 means to use the number of items, i.e. @a n. @param style Window style. See wxRadioBox. @param validator @@ -89,7 +90,7 @@ public: const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, - int majorDimension = 1, + int majorDimension = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); @@ -114,7 +115,9 @@ public: @param majorDimension Specifies the maximum number of rows (if style contains @c wxRA_SPECIFY_ROWS) or columns (if style contains - @c wxRA_SPECIFY_COLS) for a two-dimensional radiobox. + @c wxRA_SPECIFY_COLS) for a two-dimensional radiobox. The default + value of 0 means to use the number of items, i.e. number of + elements in @a choices. @param style Window style. See wxRadioBox. @param validator @@ -133,7 +136,7 @@ public: const wxPoint& pos, const wxSize& size, const wxArrayString& choices, - int majorDimension = 1, + int majorDimension = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr);