X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21e0a4d5f15ea1df40d29359fc1e84085936ef3f..455f6b8d94e9e312e2c1a81a9515d784f9f4ac30:/src/univ/radiobox.cpp?ds=sidebyside diff --git a/src/univ/radiobox.cpp b/src/univ/radiobox.cpp index 9b45f78351..6a23d3d34b 100644 --- a/src/univ/radiobox.cpp +++ b/src/univ/radiobox.cpp @@ -304,6 +304,13 @@ bool wxRadioBox::Enable(int n, bool enable) return m_buttons[n]->Enable(enable); } +bool wxRadioBox::IsItemEnabled(int n) const +{ + wxCHECK_MSG( IsValid(n), false, _T("invalid index in wxRadioBox::IsItemEnabled") ); + + return m_buttons[n]->IsEnabled(); +} + bool wxRadioBox::Show(int n, bool show) { wxCHECK_MSG( IsValid(n), false, _T("invalid index in wxRadioBox::Show") ); @@ -311,6 +318,13 @@ bool wxRadioBox::Show(int n, bool show) return m_buttons[n]->Show(show); } +bool wxRadioBox::IsItemShown(int n) const +{ + wxCHECK_MSG( IsValid(n), false, _T("invalid index in wxRadioBox::IsItemShown") ); + + return m_buttons[n]->IsShown(); +} + // ---------------------------------------------------------------------------- // methods forwarded to the static box // ---------------------------------------------------------------------------- @@ -378,7 +392,7 @@ void wxRadioBox::DoSetToolTip(wxToolTip *tooltip) wxSize wxRadioBox::GetMaxButtonSize() const { - int widthMax, heightMax, width, height; + int widthMax, heightMax, width = 0, height = 0; widthMax = heightMax = 0; int count = GetCount();