X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43c48e1e53d74cef62d15f08f015d9efeb45a0c1..3399af21d10d3f8ce4f39dfb29df5546ab265ef6:/interface/wx/radiobut.h diff --git a/interface/wx/radiobut.h b/interface/wx/radiobut.h index ef4dd21c76..26366ecdc3 100644 --- a/interface/wx/radiobut.h +++ b/interface/wx/radiobut.h @@ -3,7 +3,7 @@ // Purpose: interface of wxRadioButton // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -30,7 +30,7 @@ only on PalmOS). @endStyleTable - @beginEventTable{wxCommandEvent} + @beginEventEmissionTable{wxCommandEvent} @event{EVT_RADIOBUTTON(id, func)} Process a @c wxEVT_COMMAND_RADIOBUTTON_SELECTED event, when the radiobutton is clicked. @@ -40,12 +40,11 @@ @category{ctrl} @appearance{radiobutton.png} - @see @ref overview_eventhandling, wxRadioBox, wxCheckBox + @see @ref overview_events, wxRadioBox, wxCheckBox */ class wxRadioButton : public wxControl { public: - /** Default constructor. @@ -63,11 +62,11 @@ public: @param label Label for the radio button. @param pos - Window position. If @c wxDefaultPosition is specified then a default - position is chosen. + Window position. If ::wxDefaultPosition is specified then a default + position is chosen. @param size - Window size. If @c wxDefaultSize is specified then a default size - is chosen. + Window size. If ::wxDefaultSize is specified then a default size + is chosen. @param style Window style. See wxRadioButton. @param validator @@ -83,7 +82,7 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "radioButton"); + const wxString& name = wxRadioButtonNameStr); /** Destructor, destroying the radio button item. @@ -108,6 +107,10 @@ public: /** Sets the radio button to selected or deselected status. This does not cause a @c wxEVT_COMMAND_RADIOBUTTON_SELECTED event to get emitted. + + If the radio button belongs to a group you can only select a radio button + (which will deselect the previously selected button) and you therefore + must not call this method with value set to @false in that case. @param value @true to select, @false to deselect.