- m_alreadySent = FALSE;
- m_needParent = TRUE;
-
- PreCreation( parent, id, pos, size, style, name );
-
- SetValidator( validator );
-
- m_widget = gtk_frame_new( title );
-
- int x = m_x+5;
- int y = m_y+15;
- int maxLen = 0;
- int height = 20;
- int width = 0;
-
- GtkRadioButton *m_radio = (GtkRadioButton*) NULL;
-
- if (m_windowStyle & wxRA_VERTICAL)
- {
- GSList *radio_button_group = (GSList *) NULL;
- for (int i = 0; i < n; i++)
- {
- if (i) radio_button_group = gtk_radio_button_group( GTK_RADIO_BUTTON(m_radio) );
-
- m_radio = GTK_RADIO_BUTTON( gtk_radio_button_new_with_label( radio_button_group, choices[i] ) );
-
- m_boxes.Append( (wxObject*) m_radio );
-
- ConnectWidget( GTK_WIDGET(m_radio) );
-
- if (!i) gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(m_radio), TRUE );
-
- gtk_signal_connect( GTK_OBJECT(m_radio), "clicked",
- GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this );
-
- gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), GTK_WIDGET(m_radio), x, y );
-
- int tmp = 25+gdk_string_measure( GTK_WIDGET(m_radio)->style->font, choices[i] );
- if (tmp > maxLen) maxLen = tmp;
-
- width = m_width-10;
- if (size.x == -1) width = tmp;
- gtk_widget_set_usize( GTK_WIDGET(m_radio), width, 20 );
-
- y += 20;
- height += 20;
-
- }
- width = maxLen + 10;
- }
- else
- {
- int max = 0;
- for (int i = 0; i < n; i++)
- {
- GdkFont *font = m_widget->style->font;
- int len = 27+gdk_string_measure( font, choices[i] );
- if (len > max) max = len;
- }
-
+ m_alreadySent = FALSE;
+ m_needParent = TRUE;
+ m_acceptsFocus = TRUE;
+
+ PreCreation( parent, id, pos, size, style, name );
+
+ SetValidator( validator );
+
+ m_widget = gtk_frame_new( title.mbc_str() );
+
+ m_majorDim = majorDim;
+
+ GtkRadioButton *m_radio = (GtkRadioButton*) NULL;
+