2 // System.Windows.Forms.Frame
5 // Joel Basson (jstrike@mweb.co.za)
11 namespace System.Windows.Forms {
15 /// Represents a Windows RadioButton control.
\r
20 public class RadioButton : ButtonBase {
22 private static int initialized;
23 static Gtk.RadioButton first_radio_button;
29 internal override Gtk.Widget CreateWidget() {
30 initialized = initialized + 1;
31 if ( initialized == 1 ) {
32 first_radio_button = new Gtk.RadioButton(null, "");
33 return first_radio_button;
36 return Gtk.RadioButton.NewWithLabelFromWidget(first_radio_button, "");
40 public override string Text {
42 return ((Gtk.RadioButton)Widget).Label;
45 ((Gtk.RadioButton)Widget).Label = value;