-wxRadioBox::wxRadioBox(void)
-{
-};
-
-wxRadioBox::wxRadioBox( wxWindow *parent, const wxWindowID id, const wxString& title,
- const wxPoint &pos, const wxSize &size,
- const int n, const wxString choices[],
- const int majorDim, const long style,
- const wxString &name )
-{
- Create( parent, id, title, pos, size, n, choices, majorDim, style, name );
-};
-
-bool wxRadioBox::Create( wxWindow *parent, const wxWindowID id, const wxString& title,
- const wxPoint &pos, const wxSize &size,
- const int n, const wxString choices[],
- const int WXUNUSED(majorDim), const long style,
- const wxString &name )
-{
- m_needParent = TRUE;
-
- PreCreation( parent, id, pos, size, style, name );
-
- m_widget = gtk_frame_new( title );
-
- int x = m_x+5;
- int y = m_y+15;
- int maxLen = 0;
- int height = 20;
-
-// if (((m_style & wxRA_VERTICAL) == wxRA_VERTICAL) && (n > 0))
- if (n > 0)
- {
- GSList *radio_button_group = NULL;
+BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
+ EVT_SIZE(wxRadioBox::OnSize)
+END_EVENT_TABLE()
+
+wxRadioBox::wxRadioBox()
+{
+}
+
+bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title,
+ const wxPoint &pos, const wxSize &size,
+ int n, const wxString choices[], int majorDim,
+ long style, const wxValidator& validator,
+ const wxString &name )
+{
+ m_alreadySent = FALSE;
+ m_needParent = TRUE;
+ m_acceptsFocus = TRUE;
+
+ 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() );
+
+ m_majorDim = majorDim;
+
+ GtkRadioButton *m_radio = (GtkRadioButton*) NULL;
+
+ wxString label;
+ GSList *radio_button_group = (GSList *) NULL;