m_needParent = TRUE;
m_acceptsFocus = TRUE;
- PreCreation( parent, id, pos, size, style, name );
-
-#if wxUSE_VALIDATORS
- SetValidator( validator );
-#endif
+ if (!PreCreation( parent, pos, size ) ||
+ !CreateBase( parent, id, pos, size, style, validator, name ))
+ {
+ wxFAIL_MSG( _T("wxRadioBox creation failed") );
+ return FALSE;
+ }
m_widget = gtk_frame_new( title.mbc_str() );
node = node->Next();
}
res.x = x+4;
- res.y = 42;
+ res.y = 40;
}
return res;
gtk_widget_hide( button );
}
-wxString wxRadioBox::GetStringSelection(void) const
+wxString wxRadioBox::GetStringSelection() const
{
wxCHECK_MSG( m_widget != NULL, _T(""), _T("invalid radiobox") );
return TRUE;
}
-int wxRadioBox::Number(void) const
+int wxRadioBox::Number() const
{
return m_boxes.Number();
}
-int wxRadioBox::GetNumberOfRowsOrCols(void) const
+int wxRadioBox::GetNumberOfRowsOrCols() const
{
return 1;
}