IMPLEMENT_DYNAMIC_CLASS(wxRadioBox,wxControl)
-BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
- EVT_SIZE(wxRadioBox::OnSize)
-END_EVENT_TABLE()
-
wxRadioBox::wxRadioBox()
{
}
}
}
-void wxRadioBox::OnSize( wxSizeEvent &event )
+void wxRadioBox::DoSetSize( int x, int y, int width, int height, int sizeFlags )
{
+ wxWindow::DoSetSize( x, y, width, height, sizeFlags );
+
LayoutItems();
-
- event.Skip();
}
wxSize wxRadioBox::LayoutItems()
{
wxCHECK_MSG( m_widget != NULL, FALSE, wxT("invalid radiobox") );
- wxWindow::Show( show );
+ if (!wxControl::Show(show))
+ {
+ // nothing to do
+ return FALSE;
+ }
if ((m_windowStyle & wxNO_BORDER) != 0)
gtk_widget_hide( m_widget );