X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e5e10e234e2325fa6e25b23098470c5015e07a01..931d6a47c32a5b4c283243cb553ce71ee2b535d5:/interface/wx/radiobox.h diff --git a/interface/wx/radiobox.h b/interface/wx/radiobox.h index 196de09b27..c6c1c2cdea 100644 --- a/interface/wx/radiobox.h +++ b/interface/wx/radiobox.h @@ -2,7 +2,6 @@ // Name: radiobox.h // Purpose: interface of wxRadioBox // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -23,13 +22,13 @@ @beginEventEmissionTable{wxCommandEvent} @event{EVT_RADIOBOX(id, func)} - Process a @c wxEVT_COMMAND_RADIOBOX_SELECTED event, when a radiobutton + Process a @c wxEVT_RADIOBOX event, when a radiobutton is clicked. @endEventTable @library{wxcore} @category{ctrl} - @appearance{radiobox.png} + @appearance{radiobox} @see @ref overview_events, wxRadioButton, wxCheckBox */ @@ -287,6 +286,14 @@ public: */ void SetItemToolTip(unsigned int item, const wxString& text); + /** + Sets the selection to the given item. + + Notice that a radio box always has selection, so @a n must be valid + here and passing @c wxNOT_FOUND is not allowed. + */ + virtual void SetSelection(int n); + /** Shows or hides individual buttons. @@ -310,7 +317,6 @@ public: virtual unsigned int GetCount() const; virtual wxString GetString(unsigned int n) const; virtual void SetString(unsigned int n, const wxString& string); - virtual void SetSelection(int n); virtual int GetSelection() const; };