// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "univradiobox.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
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);
}
// ----------------------------------------------------------------------------
wxSize sizeBtn = GetMaxButtonSize();
wxPoint ptOrigin = GetBoxAreaOrigin();
- wxPoint clientOrigin = GetParent() ? GetParent()->GetClientAreaOrigin() : wxPoint();
+ wxPoint clientOrigin = GetParent() ? GetParent()->GetClientAreaOrigin() : wxPoint(0,0);
x0 += ptOrigin.x + BOX_BORDER_X - clientOrigin.x;
y0 += ptOrigin.y + BOX_BORDER_Y - clientOrigin.y;