| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // System.Windows.Forms.Frame
- //
- // Author:
- // Joel Basson ([email protected])
- //
- //
- using System;
- namespace System.Windows.Forms {
-
- /// <summary>
- /// Represents a Windows RadioButton control.
- ///
- /// </summary>
-
-
- public class RadioButton : CheckBox {
- private static int initialized;
- static Gtk.RadioButton first_radio_button;
-
- public RadioButton(){
-
- }
-
- internal override Gtk.Widget CreateWidget() {
- initialized = initialized + 1;
- if ( initialized == 1 ) {
- first_radio_button = new Gtk.RadioButton(null, "");
- return first_radio_button;
- }
- else {
- return Gtk.RadioButton.NewWithLabelFromWidget(first_radio_button, "");
- }
- }
-
- public override string Text {
- get {
- return ((Gtk.RadioButton)Widget).Label;
- }
- set {
- ((Gtk.RadioButton)Widget).Label = value;
- }
- }
- }
- }
|