X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0966aee3d9eac832fe7dcf66db2eb06e76c51da5..3bf93e1e9ac6b61e5220967d2ada2d4faec4dd9c:/src/univ/radiobox.cpp diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index 6637727315..bb6aa6eda1 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -322,18 +322,18 @@ void wxRadioBox::SetString(int n, const wxString& label) m_buttons[n]->SetLabel(label); } -void wxRadioBox::Enable(int n, bool enable) +bool wxRadioBox::Enable(int n, bool enable) { - wxCHECK_RET( IsValid(n), _T("invalid index in wxRadioBox::Enable") ); + wxCHECK_MSG( IsValid(n), false, _T("invalid index in wxRadioBox::Enable") ); - m_buttons[n]->Enable(enable); + return m_buttons[n]->Enable(enable); } -void wxRadioBox::Show(int n, bool show) +bool wxRadioBox::Show(int n, bool show) { - wxCHECK_RET( IsValid(n), _T("invalid index in wxRadioBox::Show") ); + wxCHECK_MSG( IsValid(n), false, _T("invalid index in wxRadioBox::Show") ); - m_buttons[n]->Show(show); + return m_buttons[n]->Show(show); } // ----------------------------------------------------------------------------