protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget DatePickerDemo.MainWindow this.Name = "DatePickerDemo.MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("DatePicker demo"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; // Container child DatePickerDemo.MainWindow.Gtk.Container+ContainerChild this.hbox = new global::Gtk.HBox(); this.hbox.Name = "hbox"; this.hbox.Spacing = 6; // Container child hbox.Gtk.Box+BoxChild this.label = new global::GtkForms.FormsLabel(); this.label.Name = "label"; this.label.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.label.FontSize = 10; this.hbox.Add(this.label); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox[this.label])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.datepicker = new global::GtkForms.FormsDatePicker(); this.hbox.Add(this.datepicker); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox[this.datepicker])); w2.Position = 1; // Container child hbox.Gtk.Box+BoxChild this.label2 = new global::GtkForms.FormsLabel(); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.label2.FontSize = 10; this.hbox.Add(this.label2); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox[this.label2])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.datepicker2 = new global::GtkForms.FormsDatePicker(); this.hbox.Add(this.datepicker2); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox[this.datepicker2])); w4.Position = 3; w4.Expand = false; w4.Fill = false; this.Add(this.hbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 572; this.DefaultHeight = 64; this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget DatePickerDemo.MainWindow this.Name = "DatePickerDemo.MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("DatePicker demo"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; // Container child DatePickerDemo.MainWindow.Gtk.Container+ContainerChild this.hbox = new global::Gtk.HBox (); this.hbox.Name = "hbox"; this.hbox.Spacing = 6; // Container child hbox.Gtk.Box+BoxChild this.label = new global::GtkForms.FormsLabel (); this.label.Name = "label"; this.label.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.label.FontSize = 10; this.hbox.Add (this.label); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox[this.label])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.datepicker = new global::GtkForms.FormsDatePicker (); this.hbox.Add (this.datepicker); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox[this.datepicker])); w2.Position = 1; // Container child hbox.Gtk.Box+BoxChild this.label2 = new global::GtkForms.FormsLabel (); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.label2.FontSize = 10; this.hbox.Add (this.label2); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox[this.label2])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.datepicker2 = new global::GtkForms.FormsDatePicker (); this.hbox.Add (this.datepicker2); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox[this.datepicker2])); w4.Position = 3; w4.Expand = false; w4.Fill = false; this.Add (this.hbox); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 572; this.DefaultHeight = 64; this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.gridview = new global::GtkForms.FormsGridView (); this.gridview.CanFocus = true; this.gridview.Name = "gridview"; this.gridview.AutoGenerateColumns = true; this.gridview.FontSize = 10; this.GtkScrolledWindow.Add (this.gridview); this.hbox1.Add (this.GtkScrolledWindow); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new global::Gtk.Table (((uint)(6)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(4)); // Container child table1.Gtk.Table+TableChild this.alignmentFavourite = new global::Gtk.Alignment (0.5F, 0.5F, 1F, 1F); this.alignmentFavourite.Name = "alignmentFavourite"; // Container child alignmentFavourite.Gtk.Container+ContainerChild this.checkFavourite = new global::GtkForms.FormsCheckButton (); this.checkFavourite.CanFocus = true; this.checkFavourite.Name = "checkFavourite"; this.checkFavourite.Label = ""; this.checkFavourite.DrawIndicator = true; this.checkFavourite.FontSize = 10; this.alignmentFavourite.Add (this.checkFavourite); this.table1.Add (this.alignmentFavourite); global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.alignmentFavourite])); w4.TopAttach = ((uint)(3)); w4.BottomAttach = ((uint)(4)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.alignmentPrice = new global::Gtk.Alignment (1F, 0.5F, 0F, 1F); this.alignmentPrice.Name = "alignmentPrice"; // Container child alignmentPrice.Gtk.Container+ContainerChild this.spinPrice = new global::GtkForms.FormsSpinButton (); this.spinPrice.WidthRequest = 60; this.spinPrice.CanFocus = true; this.spinPrice.Name = "spinPrice"; this.alignmentPrice.Add (this.spinPrice); this.table1.Add (this.alignmentPrice); global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.alignmentPrice])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.buttonLoad = new global::Gtk.Button (); this.buttonLoad.CanFocus = true; this.buttonLoad.Name = "buttonLoad"; this.buttonLoad.UseUnderline = true; this.buttonLoad.Label = global::Mono.Unix.Catalog.GetString ("Load"); this.table1.Add (this.buttonLoad); global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.buttonLoad])); w7.TopAttach = ((uint)(5)); w7.BottomAttach = ((uint)(6)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.entryID = new global::GtkForms.FormsEntry (); this.entryID.CanFocus = true; this.entryID.Name = "entryID"; this.entryID.IsEditable = true; this.entryID.InvisibleChar = '●'; this.entryID.FontSize = 10; this.table1.Add (this.entryID); global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryID])); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.XOptions = ((global::Gtk.AttachOptions)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.entryName = new global::GtkForms.FormsEntry (); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.entryName.FontSize = 10; this.table1.Add (this.entryName); global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryName])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelError = new global::Gtk.Label (); this.labelError.Name = "labelError"; this.labelError.LabelProp = global::Mono.Unix.Catalog.GetString ("error message"); this.table1.Add (this.labelError); global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelError])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); w10.RightAttach = ((uint)(2)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelFavourite = new global::GtkForms.FormsLabel (); this.labelFavourite.Name = "labelFavourite"; this.labelFavourite.Xalign = 1F; this.labelFavourite.Yalign = 0F; this.labelFavourite.LabelProp = global::Mono.Unix.Catalog.GetString ("Favourite"); this.labelFavourite.FontSize = 10; this.table1.Add (this.labelFavourite); global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelFavourite])); w11.TopAttach = ((uint)(3)); w11.BottomAttach = ((uint)(4)); w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelID = new global::GtkForms.FormsLabel (); this.labelID.Name = "labelID"; this.labelID.Xalign = 1F; this.labelID.Yalign = 0F; this.labelID.LabelProp = global::Mono.Unix.Catalog.GetString ("ID"); this.labelID.FontSize = 10; this.table1.Add (this.labelID); global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelID])); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelName = new global::GtkForms.FormsLabel (); this.labelName.Name = "labelName"; this.labelName.Xalign = 1F; this.labelName.Yalign = 0F; this.labelName.LabelProp = global::Mono.Unix.Catalog.GetString ("Company name\n"); this.labelName.FontSize = 10; this.table1.Add (this.labelName); global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelName])); w13.TopAttach = ((uint)(1)); w13.BottomAttach = ((uint)(2)); w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelPrice = new global::GtkForms.FormsLabel (); this.labelPrice.Name = "labelPrice"; this.labelPrice.Xalign = 1F; this.labelPrice.Yalign = 0F; this.labelPrice.LabelProp = global::Mono.Unix.Catalog.GetString ("Price"); this.labelPrice.FontSize = 10; this.table1.Add (this.labelPrice); global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelPrice])); w14.TopAttach = ((uint)(2)); w14.BottomAttach = ((uint)(3)); w14.XOptions = ((global::Gtk.AttachOptions)(4)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); this.hbox1.Add (this.table1); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.table1])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.Add (this.hbox1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 651; this.DefaultHeight = 300; this.labelError.Hide (); this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); this.entryName.Validating += new global::System.ComponentModel.CancelEventHandler (this.OnEntryNameValidating); this.buttonLoad.Clicked += new global::System.EventHandler (this.ButtonLoad_Clicked); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("Label entry binding demo"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label = new global::GtkForms.FormsLabel(); this.label.Name = "label"; this.label.FontSize = 0; this.hbox1.Add(this.label); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.entry = new global::GtkForms.FormsEntry(); this.entry.CanFocus = true; this.entry.Name = "entry"; this.entry.IsEditable = true; this.entry.InvisibleChar = '●'; this.entry.FontSize = 0; this.hbox1.Add(this.entry); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.entry])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add(this.hbox1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.checkLabel = new global::GtkForms.FormsLabel(); this.checkLabel.Name = "checkLabel"; this.checkLabel.FontSize = 0; this.hbox2.Add(this.checkLabel); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.checkLabel])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.check = new global::GtkForms.FormsCheckButton(); this.check.CanFocus = true; this.check.Name = "check"; this.check.DrawIndicator = true; this.check.FontSize = 0; this.hbox2.Add(this.check); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.check])); w5.Position = 1; this.vbox1.Add(this.hbox2); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox2])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox3 = new global::Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.notifyLabel = new global::GtkForms.FormsLabel(); this.notifyLabel.Name = "notifyLabel"; this.notifyLabel.FontSize = 0; this.hbox3.Add(this.notifyLabel); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.notifyLabel])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.notifyEntry = new global::GtkForms.FormsEntry(); this.notifyEntry.CanFocus = true; this.notifyEntry.Name = "notifyEntry"; this.notifyEntry.IsEditable = true; this.notifyEntry.InvisibleChar = '●'; this.notifyEntry.FontSize = 0; this.hbox3.Add(this.notifyEntry); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.notifyEntry])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.vbox1.Add(this.hbox3); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox3])); w9.Position = 2; w9.Expand = false; w9.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox4 = new global::Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.spinLabel = new global::GtkForms.FormsLabel(); this.spinLabel.Name = "spinLabel"; this.spinLabel.FontSize = 0; this.hbox4.Add(this.spinLabel); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.spinLabel])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.spin = new global::GtkForms.FormsSpinButton(); this.spin.CanFocus = true; this.spin.Name = "spin"; this.hbox4.Add(this.spin); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.spin])); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.spinEntry = new global::GtkForms.FormsEntry(); this.spinEntry.CanFocus = true; this.spinEntry.Name = "spinEntry"; this.spinEntry.IsEditable = true; this.spinEntry.InvisibleChar = '●'; this.spinEntry.FontSize = 0; this.hbox4.Add(this.spinEntry); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.spinEntry])); w12.Position = 2; w12.Expand = false; w12.Fill = false; this.vbox1.Add(this.hbox4); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox4])); w13.Position = 3; w13.Expand = false; w13.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox7 = new global::Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.notebook1 = new global::Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.frame1 = new global::Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new global::Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.hbox8 = new global::Gtk.HBox(); this.hbox8.Name = "hbox8"; this.hbox8.Spacing = 6; // Container child hbox8.Gtk.Box+BoxChild this.labelStreet = new global::GtkForms.FormsLabel(); this.labelStreet.Name = "labelStreet"; this.labelStreet.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.labelStreet.FontSize = 0; this.hbox8.Add(this.labelStreet); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox8 [this.labelStreet])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child hbox8.Gtk.Box+BoxChild this.entryAdressStreet = new global::GtkForms.FormsEntry(); this.entryAdressStreet.CanFocus = true; this.entryAdressStreet.Name = "entryAdressStreet"; this.entryAdressStreet.IsEditable = true; this.entryAdressStreet.InvisibleChar = '●'; this.entryAdressStreet.FontSize = 0; this.hbox8.Add(this.entryAdressStreet); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox8 [this.entryAdressStreet])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.GtkAlignment.Add(this.hbox8); this.frame1.Add(this.GtkAlignment); this.GtkLabel3 = new global::Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = global::Mono.Unix.Catalog.GetString("<b>GtkFrame</b>"); this.GtkLabel3.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel3; this.notebook1.Add(this.frame1); // Notebook tab this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.frame1, this.label1); this.label1.ShowAll(); this.hbox7.Add(this.notebook1); global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox7 [this.notebook1])); w19.Position = 0; this.vbox1.Add(this.hbox7); global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox7])); w20.PackType = ((global::Gtk.PackType)(1)); w20.Position = 4; w20.Expand = false; w20.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox6 = new global::Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.labelTextView = new global::GtkForms.FormsLabel(); this.labelTextView.Name = "labelTextView"; this.labelTextView.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.labelTextView.FontSize = 0; this.hbox6.Add(this.labelTextView); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox6 [this.labelTextView])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.textView = new global::GtkForms.FormsTextView(); this.textView.CanFocus = true; this.textView.Name = "textView"; this.textView.FontSize = 0; this.GtkScrolledWindow.Add(this.textView); this.hbox6.Add(this.GtkScrolledWindow); global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox6 [this.GtkScrolledWindow])); w23.Position = 1; this.vbox1.Add(this.hbox6); global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox6])); w24.PackType = ((global::Gtk.PackType)(1)); w24.Position = 5; w24.Expand = false; w24.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new global::Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.radioOn = new global::GtkForms.FormsRadioButton(); this.radioOn.CanFocus = true; this.radioOn.Name = "radioOn"; this.radioOn.Label = global::Mono.Unix.Catalog.GetString("On"); this.radioOn.DrawIndicator = true; this.radioOn.UseUnderline = true; this.radioOn.Group = new global::GLib.SList(global::System.IntPtr.Zero); this.hbox5.Add(this.radioOn); global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.radioOn])); w25.Position = 0; w25.Expand = false; w25.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.radioOff = new global::GtkForms.FormsRadioButton(); this.radioOff.CanFocus = true; this.radioOff.Name = "radioOff"; this.radioOff.Label = global::Mono.Unix.Catalog.GetString("Off"); this.radioOff.DrawIndicator = true; this.radioOff.UseUnderline = true; this.radioOff.Group = this.radioOn.Group; this.hbox5.Add(this.radioOff); global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.radioOff])); w26.Position = 1; w26.Expand = false; w26.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.labelStatus = new global::GtkForms.FormsLabel(); this.labelStatus.Name = "labelStatus"; this.labelStatus.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.labelStatus.FontSize = 0; this.hbox5.Add(this.labelStatus); global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.labelStatus])); w27.Position = 2; w27.Expand = false; w27.Fill = false; this.vbox1.Add(this.hbox5); global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox5])); w28.PackType = ((global::Gtk.PackType)(1)); w28.Position = 6; w28.Expand = false; w28.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 423; this.DefaultHeight = 349; this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("Label entry binding demo"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox (); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label = new global::GtkForms.FormsLabel (); this.label.Name = "label"; this.label.FontSize = 0; this.hbox1.Add (this.label); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.entry = new global::GtkForms.FormsEntry (); this.entry.CanFocus = true; this.entry.Name = "entry"; this.entry.IsEditable = true; this.entry.InvisibleChar = '●'; this.entry.FontSize = 0; this.hbox1.Add (this.entry); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.entry])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.vbox1.Add (this.hbox1); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new global::Gtk.HBox (); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.checkLabel = new global::GtkForms.FormsLabel (); this.checkLabel.Name = "checkLabel"; this.checkLabel.FontSize = 0; this.hbox2.Add (this.checkLabel); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.checkLabel])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.check = new global::GtkForms.FormsCheckButton (); this.check.CanFocus = true; this.check.Name = "check"; this.check.DrawIndicator = true; this.check.FontSize = 0; this.hbox2.Add (this.check); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.check])); w5.Position = 1; this.vbox1.Add (this.hbox2); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox2])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox3 = new global::Gtk.HBox (); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.notifyLabel = new global::GtkForms.FormsLabel (); this.notifyLabel.Name = "notifyLabel"; this.notifyLabel.FontSize = 0; this.hbox3.Add (this.notifyLabel); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.notifyLabel])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.notifyEntry = new global::GtkForms.FormsEntry (); this.notifyEntry.CanFocus = true; this.notifyEntry.Name = "notifyEntry"; this.notifyEntry.IsEditable = true; this.notifyEntry.InvisibleChar = '●'; this.notifyEntry.FontSize = 0; this.hbox3.Add (this.notifyEntry); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.notifyEntry])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.vbox1.Add (this.hbox3); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox3])); w9.Position = 2; w9.Expand = false; w9.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox4 = new global::Gtk.HBox (); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.spinLabel = new global::GtkForms.FormsLabel (); this.spinLabel.Name = "spinLabel"; this.spinLabel.FontSize = 0; this.hbox4.Add (this.spinLabel); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.spinLabel])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.spin = new global::GtkForms.FormsSpinButton (); this.spin.CanFocus = true; this.spin.Name = "spin"; this.hbox4.Add (this.spin); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.spin])); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.spinEntry = new global::GtkForms.FormsEntry (); this.spinEntry.CanFocus = true; this.spinEntry.Name = "spinEntry"; this.spinEntry.IsEditable = true; this.spinEntry.InvisibleChar = '●'; this.spinEntry.FontSize = 0; this.hbox4.Add (this.spinEntry); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.spinEntry])); w12.Position = 2; w12.Expand = false; w12.Fill = false; this.vbox1.Add (this.hbox4); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox4])); w13.Position = 3; w13.Expand = false; w13.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox7 = new global::Gtk.HBox (); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.notebook1 = new global::Gtk.Notebook (); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.frame1 = new global::Gtk.Frame (); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new global::Gtk.Alignment (0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.hbox8 = new global::Gtk.HBox (); this.hbox8.Name = "hbox8"; this.hbox8.Spacing = 6; // Container child hbox8.Gtk.Box+BoxChild this.labelStreet = new global::GtkForms.FormsLabel (); this.labelStreet.Name = "labelStreet"; this.labelStreet.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.labelStreet.FontSize = 0; this.hbox8.Add (this.labelStreet); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.hbox8 [this.labelStreet])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child hbox8.Gtk.Box+BoxChild this.entryAdressStreet = new global::GtkForms.FormsEntry (); this.entryAdressStreet.CanFocus = true; this.entryAdressStreet.Name = "entryAdressStreet"; this.entryAdressStreet.IsEditable = true; this.entryAdressStreet.InvisibleChar = '●'; this.entryAdressStreet.FontSize = 0; this.hbox8.Add (this.entryAdressStreet); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox8 [this.entryAdressStreet])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.GtkAlignment.Add (this.hbox8); this.frame1.Add (this.GtkAlignment); this.GtkLabel3 = new global::Gtk.Label (); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = global::Mono.Unix.Catalog.GetString ("<b>GtkFrame</b>"); this.GtkLabel3.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel3; this.notebook1.Add (this.frame1); // Notebook tab this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("page1"); this.notebook1.SetTabLabel (this.frame1, this.label1); this.label1.ShowAll (); this.hbox7.Add (this.notebook1); global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox7 [this.notebook1])); w19.Position = 0; this.vbox1.Add (this.hbox7); global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox7])); w20.PackType = ((global::Gtk.PackType)(1)); w20.Position = 4; w20.Expand = false; w20.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox6 = new global::Gtk.HBox (); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.labelTextView = new global::GtkForms.FormsLabel (); this.labelTextView.Name = "labelTextView"; this.labelTextView.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.labelTextView.FontSize = 0; this.hbox6.Add (this.labelTextView); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox6 [this.labelTextView])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.textView = new global::GtkForms.FormsTextView (); this.textView.CanFocus = true; this.textView.Name = "textView"; this.textView.FontSize = 0; this.GtkScrolledWindow.Add (this.textView); this.hbox6.Add (this.GtkScrolledWindow); global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox6 [this.GtkScrolledWindow])); w23.Position = 1; this.vbox1.Add (this.hbox6); global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox6])); w24.PackType = ((global::Gtk.PackType)(1)); w24.Position = 5; w24.Expand = false; w24.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new global::Gtk.HBox (); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.radioOn = new global::GtkForms.FormsRadioButton (); this.radioOn.CanFocus = true; this.radioOn.Name = "radioOn"; this.radioOn.Label = global::Mono.Unix.Catalog.GetString ("On"); this.radioOn.DrawIndicator = true; this.radioOn.UseUnderline = true; this.radioOn.Group = new global::GLib.SList (global::System.IntPtr.Zero); this.hbox5.Add (this.radioOn); global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.radioOn])); w25.Position = 0; w25.Expand = false; w25.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.radioOff = new global::GtkForms.FormsRadioButton (); this.radioOff.CanFocus = true; this.radioOff.Name = "radioOff"; this.radioOff.Label = global::Mono.Unix.Catalog.GetString ("Off"); this.radioOff.DrawIndicator = true; this.radioOff.UseUnderline = true; this.radioOff.Group = this.radioOn.Group; this.hbox5.Add (this.radioOff); global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.radioOff])); w26.Position = 1; w26.Expand = false; w26.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.labelStatus = new global::GtkForms.FormsLabel (); this.labelStatus.Name = "labelStatus"; this.labelStatus.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.labelStatus.FontSize = 0; this.hbox5.Add (this.labelStatus); global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.labelStatus])); w27.Position = 2; w27.Expand = false; w27.Fill = false; this.vbox1.Add (this.hbox5); global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox5])); w28.PackType = ((global::Gtk.PackType)(1)); w28.Position = 6; w28.Expand = false; w28.Fill = false; this.Add (this.vbox1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 423; this.DefaultHeight = 349; this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget ComboBoxBinding.MainWindow this.Name = "ComboBoxBinding.MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("ComboBox binding"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child ComboBoxBinding.MainWindow.Gtk.Container+ContainerChild this.notebook1 = new global::Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox5 = new global::Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.labelEnum = new global::GtkForms.FormsLabel(); this.labelEnum.Name = "labelEnum"; this.labelEnum.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.labelEnum.FontSize = 10; this.hbox5.Add(this.labelEnum); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.labelEnum])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.comboboxEnum = new global::GtkForms.FormsComboBox(); this.comboboxEnum.Name = "comboboxEnum"; this.comboboxEnum.FontSize = 10; this.hbox5.Add(this.comboboxEnum); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.comboboxEnum])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.labelEnum2 = new global::GtkForms.FormsLabel(); this.labelEnum2.Name = "labelEnum2"; this.labelEnum2.LabelProp = global::Mono.Unix.Catalog.GetString("formslabel1"); this.labelEnum2.FontSize = 10; this.hbox5.Add(this.labelEnum2); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.labelEnum2])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.comboboxEnum2 = new global::GtkForms.FormsComboBox(); this.comboboxEnum2.Name = "comboboxEnum2"; this.comboboxEnum2.FontSize = 10; this.hbox5.Add(this.comboboxEnum2); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.comboboxEnum2])); w4.Position = 3; w4.Expand = false; w4.Fill = false; this.notebook1.Add(this.hbox5); // Notebook tab this.label4 = new global::Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = global::Mono.Unix.Catalog.GetString("Enums"); this.notebook1.SetTabLabel(this.hbox5, this.label4); this.label4.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.formslabel1 = new global::GtkForms.FormsLabel(); this.formslabel1.Name = "formslabel1"; this.formslabel1.FontSize = 10; this.hbox1.Add(this.formslabel1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.formslabel1])); w6.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.formscombobox1 = new global::GtkForms.FormsComboBox(); this.formscombobox1.Name = "formscombobox1"; this.formscombobox1.FontSize = 10; this.hbox1.Add(this.formscombobox1); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.formscombobox1])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.button1 = new global::Gtk.Button(); this.button1.Sensitive = false; this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = global::Mono.Unix.Catalog.GetString("GtkButton"); this.hbox1.Add(this.button1); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.button1])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.notebook1.Add(this.hbox1); global::Gtk.Notebook.NotebookChild w9 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox1])); w9.Position = 1; // Notebook tab this.label1 = new global::Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString("List"); this.notebook1.SetTabLabel(this.hbox1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.formslabel2 = new global::GtkForms.FormsLabel(); this.formslabel2.Name = "formslabel2"; this.formslabel2.FontSize = 10; this.hbox2.Add(this.formslabel2); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.formslabel2])); w10.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.formscombobox2 = new global::GtkForms.FormsComboBox(); this.formscombobox2.Name = "formscombobox2"; this.formscombobox2.FontSize = 10; this.hbox2.Add(this.formscombobox2); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.formscombobox2])); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.button2 = new global::Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; this.button2.Label = global::Mono.Unix.Catalog.GetString("Change first item"); this.hbox2.Add(this.button2); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.button2])); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.button5 = new global::Gtk.Button(); this.button5.CanFocus = true; this.button5.Name = "button5"; this.button5.UseUnderline = true; this.button5.Label = global::Mono.Unix.Catalog.GetString("Set position"); this.hbox2.Add(this.button5); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.button5])); w13.Position = 3; w13.Expand = false; w13.Fill = false; this.notebook1.Add(this.hbox2); global::Gtk.Notebook.NotebookChild w14 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox2])); w14.Position = 2; // Notebook tab this.label2 = new global::Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString("BindingSource"); this.notebook1.SetTabLabel(this.hbox2, this.label2); this.label2.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox3 = new global::Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.formslabel4 = new global::GtkForms.FormsLabel(); this.formslabel4.Name = "formslabel4"; this.formslabel4.FontSize = 10; this.hbox3.Add(this.formslabel4); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.formslabel4])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.formslabel3 = new global::GtkForms.FormsLabel(); this.formslabel3.Name = "formslabel3"; this.formslabel3.FontSize = 10; this.hbox3.Add(this.formslabel3); global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.formslabel3])); w16.Position = 1; // Container child hbox3.Gtk.Box+BoxChild this.formscomboboxentry1 = new global::GtkForms.FormsComboBoxEntry(); this.formscomboboxentry1.Name = "formscomboboxentry1"; this.formscomboboxentry1.FontSize = 10; this.hbox3.Add(this.formscomboboxentry1); global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.formscomboboxentry1])); w17.Position = 2; w17.Expand = false; w17.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.button3 = new global::Gtk.Button(); this.button3.CanFocus = true; this.button3.Name = "button3"; this.button3.UseUnderline = true; this.button3.Label = global::Mono.Unix.Catalog.GetString("Change first item"); this.hbox3.Add(this.button3); global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.button3])); w18.Position = 3; w18.Expand = false; w18.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.button4 = new global::Gtk.Button(); this.button4.CanFocus = true; this.button4.Name = "button4"; this.button4.UseUnderline = true; this.button4.Label = global::Mono.Unix.Catalog.GetString("Clear"); this.hbox3.Add(this.button4); global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.button4])); w19.Position = 4; w19.Expand = false; w19.Fill = false; this.notebook1.Add(this.hbox3); global::Gtk.Notebook.NotebookChild w20 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox3])); w20.Position = 3; // Notebook tab this.label3 = new global::Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = global::Mono.Unix.Catalog.GetString("BindingList"); this.notebook1.SetTabLabel(this.hbox3, this.label3); this.label3.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox4 = new global::Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.labelCityName = new global::GtkForms.FormsLabel(); this.labelCityName.Name = "labelCityName"; this.labelCityName.FontSize = 10; this.hbox4.Add(this.labelCityName); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.labelCityName])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.formscombobox3 = new global::GtkForms.FormsComboBox(); this.formscombobox3.Name = "formscombobox3"; this.formscombobox3.FontSize = 10; this.hbox4.Add(this.formscombobox3); global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.formscombobox3])); w22.Position = 1; w22.Expand = false; w22.Fill = false; this.notebook1.Add(this.hbox4); global::Gtk.Notebook.NotebookChild w23 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox4])); w23.Position = 4; w23.MenuLabel = global::Mono.Unix.Catalog.GetString("Null value"); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 408; this.DefaultHeight = 98; this.button1.Hide(); this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); this.button1.Clicked += new global::System.EventHandler(this.OnButton1Clicked); this.button2.Clicked += new global::System.EventHandler(this.OnButton2Clicked); this.button5.Clicked += new global::System.EventHandler(this.OnButton5Clicked); this.button3.Clicked += new global::System.EventHandler(this.OnButton3Clicked); this.button4.Clicked += new global::System.EventHandler(this.OnButton4Clicked); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.check = new global::GtkForms.FormsCheckButton(); this.check.CanFocus = true; this.check.Name = "check"; this.check.Label = global::Mono.Unix.Catalog.GetString("Visible"); this.check.Active = true; this.check.DrawIndicator = true; this.check.UseUnderline = true; this.check.FontSize = 0; this.vbox1.Add(this.check); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.check])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label = new global::GtkForms.FormsLabel(); this.label.Name = "label"; this.label.LabelProp = global::Mono.Unix.Catalog.GetString("Text"); this.label.FontSize = 12; this.hbox1.Add(this.label); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.entry = new global::GtkForms.FormsEntry(); this.entry.CanFocus = true; this.entry.Name = "entry"; this.entry.IsEditable = true; this.entry.InvisibleChar = '•'; this.entry.FontSize = 12; this.hbox1.Add(this.entry); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.entry])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.vbox1.Add(this.hbox1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget ComboBoxBinding.MainWindow this.Name = "ComboBoxBinding.MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("ComboBox binding"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child ComboBoxBinding.MainWindow.Gtk.Container+ContainerChild this.notebook1 = new global::Gtk.Notebook (); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox5 = new global::Gtk.HBox (); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.labelEnum = new global::GtkForms.FormsLabel (); this.labelEnum.Name = "labelEnum"; this.labelEnum.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.labelEnum.FontSize = 10; this.hbox5.Add (this.labelEnum); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.labelEnum])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.comboboxEnum = new global::GtkForms.FormsComboBox (); this.comboboxEnum.Name = "comboboxEnum"; this.comboboxEnum.FontSize = 10; this.hbox5.Add (this.comboboxEnum); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.comboboxEnum])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.labelEnum2 = new global::GtkForms.FormsLabel (); this.labelEnum2.Name = "labelEnum2"; this.labelEnum2.LabelProp = global::Mono.Unix.Catalog.GetString ("formslabel1"); this.labelEnum2.FontSize = 10; this.hbox5.Add (this.labelEnum2); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.labelEnum2])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.comboboxEnum2 = new global::GtkForms.FormsComboBox (); this.comboboxEnum2.Name = "comboboxEnum2"; this.comboboxEnum2.FontSize = 10; this.hbox5.Add (this.comboboxEnum2); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox5 [this.comboboxEnum2])); w4.Position = 3; w4.Expand = false; w4.Fill = false; this.notebook1.Add (this.hbox5); // Notebook tab this.label4 = new global::Gtk.Label (); this.label4.Name = "label4"; this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Enums"); this.notebook1.SetTabLabel (this.hbox5, this.label4); this.label4.ShowAll (); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.formslabel1 = new global::GtkForms.FormsLabel (); this.formslabel1.Name = "formslabel1"; this.formslabel1.FontSize = 10; this.hbox1.Add (this.formslabel1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.formslabel1])); w6.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.formscombobox1 = new global::GtkForms.FormsComboBox (); this.formscombobox1.Name = "formscombobox1"; this.formscombobox1.FontSize = 10; this.hbox1.Add (this.formscombobox1); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.formscombobox1])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.button1 = new global::Gtk.Button (); this.button1.Sensitive = false; this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = global::Mono.Unix.Catalog.GetString ("GtkButton"); this.hbox1.Add (this.button1); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.button1])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.notebook1.Add (this.hbox1); global::Gtk.Notebook.NotebookChild w9 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox1])); w9.Position = 1; // Notebook tab this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("List"); this.notebook1.SetTabLabel (this.hbox1, this.label1); this.label1.ShowAll (); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox2 = new global::Gtk.HBox (); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.formslabel2 = new global::GtkForms.FormsLabel (); this.formslabel2.Name = "formslabel2"; this.formslabel2.FontSize = 10; this.hbox2.Add (this.formslabel2); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.formslabel2])); w10.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.formscombobox2 = new global::GtkForms.FormsComboBox (); this.formscombobox2.Name = "formscombobox2"; this.formscombobox2.FontSize = 10; this.hbox2.Add (this.formscombobox2); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.formscombobox2])); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.button2 = new global::Gtk.Button (); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; this.button2.Label = global::Mono.Unix.Catalog.GetString ("Change first item"); this.hbox2.Add (this.button2); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.button2])); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.button5 = new global::Gtk.Button (); this.button5.CanFocus = true; this.button5.Name = "button5"; this.button5.UseUnderline = true; this.button5.Label = global::Mono.Unix.Catalog.GetString ("Set position"); this.hbox2.Add (this.button5); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.button5])); w13.Position = 3; w13.Expand = false; w13.Fill = false; this.notebook1.Add (this.hbox2); global::Gtk.Notebook.NotebookChild w14 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox2])); w14.Position = 2; // Notebook tab this.label2 = new global::Gtk.Label (); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("BindingSource"); this.notebook1.SetTabLabel (this.hbox2, this.label2); this.label2.ShowAll (); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox3 = new global::Gtk.HBox (); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.formslabel4 = new global::GtkForms.FormsLabel (); this.formslabel4.Name = "formslabel4"; this.formslabel4.FontSize = 10; this.hbox3.Add (this.formslabel4); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.formslabel4])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.formslabel3 = new global::GtkForms.FormsLabel (); this.formslabel3.Name = "formslabel3"; this.formslabel3.FontSize = 10; this.hbox3.Add (this.formslabel3); global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.formslabel3])); w16.Position = 1; // Container child hbox3.Gtk.Box+BoxChild this.formscomboboxentry1 = new global::GtkForms.FormsComboBoxEntry (); this.formscomboboxentry1.Name = "formscomboboxentry1"; this.formscomboboxentry1.FontSize = 10; this.hbox3.Add (this.formscomboboxentry1); global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.formscomboboxentry1])); w17.Position = 2; w17.Expand = false; w17.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.button3 = new global::Gtk.Button (); this.button3.CanFocus = true; this.button3.Name = "button3"; this.button3.UseUnderline = true; this.button3.Label = global::Mono.Unix.Catalog.GetString ("Change first item"); this.hbox3.Add (this.button3); global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.button3])); w18.Position = 3; w18.Expand = false; w18.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.button4 = new global::Gtk.Button (); this.button4.CanFocus = true; this.button4.Name = "button4"; this.button4.UseUnderline = true; this.button4.Label = global::Mono.Unix.Catalog.GetString ("Clear"); this.hbox3.Add (this.button4); global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.button4])); w19.Position = 4; w19.Expand = false; w19.Fill = false; this.notebook1.Add (this.hbox3); global::Gtk.Notebook.NotebookChild w20 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox3])); w20.Position = 3; // Notebook tab this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("BindingList"); this.notebook1.SetTabLabel (this.hbox3, this.label3); this.label3.ShowAll (); // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox4 = new global::Gtk.HBox (); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.labelCityName = new global::GtkForms.FormsLabel (); this.labelCityName.Name = "labelCityName"; this.labelCityName.FontSize = 10; this.hbox4.Add (this.labelCityName); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.labelCityName])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.formscombobox3 = new global::GtkForms.FormsComboBox (); this.formscombobox3.Name = "formscombobox3"; this.formscombobox3.FontSize = 10; this.hbox4.Add (this.formscombobox3); global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.hbox4 [this.formscombobox3])); w22.Position = 1; w22.Expand = false; w22.Fill = false; this.notebook1.Add (this.hbox4); global::Gtk.Notebook.NotebookChild w23 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.hbox4])); w23.Position = 4; w23.MenuLabel = global::Mono.Unix.Catalog.GetString ("Null value"); this.Add (this.notebook1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 408; this.DefaultHeight = 98; this.button1.Hide (); this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); this.button1.Clicked += new global::System.EventHandler (this.OnButton1Clicked); this.button2.Clicked += new global::System.EventHandler (this.OnButton2Clicked); this.button5.Clicked += new global::System.EventHandler (this.OnButton5Clicked); this.button3.Clicked += new global::System.EventHandler (this.OnButton3Clicked); this.button4.Clicked += new global::System.EventHandler (this.OnButton4Clicked); }
protected virtual void Build() { global::Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.gridview = new global::GtkForms.FormsGridView(); this.gridview.CanFocus = true; this.gridview.Name = "gridview"; this.gridview.AutoGenerateColumns = true; this.gridview.FontSize = 10; this.GtkScrolledWindow.Add(this.gridview); this.hbox1.Add(this.GtkScrolledWindow); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new global::Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(4)); // Container child table1.Gtk.Table+TableChild this.alignmentFavourite = new global::Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignmentFavourite.Name = "alignmentFavourite"; // Container child alignmentFavourite.Gtk.Container+ContainerChild this.checkFavourite = new global::GtkForms.FormsCheckButton(); this.checkFavourite.CanFocus = true; this.checkFavourite.Name = "checkFavourite"; this.checkFavourite.Label = ""; this.checkFavourite.DrawIndicator = true; this.checkFavourite.FontSize = 10; this.alignmentFavourite.Add(this.checkFavourite); this.table1.Add(this.alignmentFavourite); global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1 [this.alignmentFavourite])); w4.TopAttach = ((uint)(3)); w4.BottomAttach = ((uint)(4)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.alignmentPrice = new global::Gtk.Alignment(1F, 0.5F, 0F, 1F); this.alignmentPrice.Name = "alignmentPrice"; // Container child alignmentPrice.Gtk.Container+ContainerChild this.spinPrice = new global::GtkForms.FormsSpinButton(); this.spinPrice.WidthRequest = 60; this.spinPrice.CanFocus = true; this.spinPrice.Name = "spinPrice"; this.alignmentPrice.Add(this.spinPrice); this.table1.Add(this.alignmentPrice); global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1 [this.alignmentPrice])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.buttonLoad = new global::Gtk.Button(); this.buttonLoad.CanFocus = true; this.buttonLoad.Name = "buttonLoad"; this.buttonLoad.UseUnderline = true; this.buttonLoad.Label = global::Mono.Unix.Catalog.GetString("Load"); this.table1.Add(this.buttonLoad); global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1 [this.buttonLoad])); w7.TopAttach = ((uint)(5)); w7.BottomAttach = ((uint)(6)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.entryID = new global::GtkForms.FormsEntry(); this.entryID.CanFocus = true; this.entryID.Name = "entryID"; this.entryID.IsEditable = true; this.entryID.InvisibleChar = '●'; this.entryID.FontSize = 10; this.table1.Add(this.entryID); global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryID])); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.XOptions = ((global::Gtk.AttachOptions)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.entryName = new global::GtkForms.FormsEntry(); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.entryName.FontSize = 10; this.table1.Add(this.entryName); global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1 [this.entryName])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelError = new global::Gtk.Label(); this.labelError.Name = "labelError"; this.labelError.LabelProp = global::Mono.Unix.Catalog.GetString("error message"); this.table1.Add(this.labelError); global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelError])); w10.TopAttach = ((uint)(4)); w10.BottomAttach = ((uint)(5)); w10.RightAttach = ((uint)(2)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelFavourite = new global::GtkForms.FormsLabel(); this.labelFavourite.Name = "labelFavourite"; this.labelFavourite.Xalign = 1F; this.labelFavourite.Yalign = 0F; this.labelFavourite.LabelProp = global::Mono.Unix.Catalog.GetString("Favourite"); this.labelFavourite.FontSize = 10; this.table1.Add(this.labelFavourite); global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelFavourite])); w11.TopAttach = ((uint)(3)); w11.BottomAttach = ((uint)(4)); w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelID = new global::GtkForms.FormsLabel(); this.labelID.Name = "labelID"; this.labelID.Xalign = 1F; this.labelID.Yalign = 0F; this.labelID.LabelProp = global::Mono.Unix.Catalog.GetString("ID"); this.labelID.FontSize = 10; this.table1.Add(this.labelID); global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelID])); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelName = new global::GtkForms.FormsLabel(); this.labelName.Name = "labelName"; this.labelName.Xalign = 1F; this.labelName.Yalign = 0F; this.labelName.LabelProp = global::Mono.Unix.Catalog.GetString("Company name\n"); this.labelName.FontSize = 10; this.table1.Add(this.labelName); global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelName])); w13.TopAttach = ((uint)(1)); w13.BottomAttach = ((uint)(2)); w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelPrice = new global::GtkForms.FormsLabel(); this.labelPrice.Name = "labelPrice"; this.labelPrice.Xalign = 1F; this.labelPrice.Yalign = 0F; this.labelPrice.LabelProp = global::Mono.Unix.Catalog.GetString("Price"); this.labelPrice.FontSize = 10; this.table1.Add(this.labelPrice); global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table1 [this.labelPrice])); w14.TopAttach = ((uint)(2)); w14.BottomAttach = ((uint)(3)); w14.XOptions = ((global::Gtk.AttachOptions)(4)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.table1])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.Add(this.hbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 651; this.DefaultHeight = 300; this.labelError.Hide(); this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent); this.entryName.Validating += new global::System.ComponentModel.CancelEventHandler(this.OnEntryNameValidating); this.buttonLoad.Clicked += new global::System.EventHandler(this.ButtonLoad_Clicked); }
protected virtual void Build() { global::Stetic.Gui.Initialize (this); // Widget MainWindow this.Name = "MainWindow"; this.Title = global::Mono.Unix.Catalog.GetString ("MainWindow"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new global::Gtk.VBox (); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.check = new global::GtkForms.FormsCheckButton (); this.check.CanFocus = true; this.check.Name = "check"; this.check.Label = global::Mono.Unix.Catalog.GetString ("Visible"); this.check.Active = true; this.check.DrawIndicator = true; this.check.UseUnderline = true; this.check.FontSize = 0; this.vbox1.Add (this.check); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.check])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label = new global::GtkForms.FormsLabel (); this.label.Name = "label"; this.label.LabelProp = global::Mono.Unix.Catalog.GetString ("Text"); this.label.FontSize = 12; this.hbox1.Add (this.label); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.entry = new global::GtkForms.FormsEntry (); this.entry.CanFocus = true; this.entry.Name = "entry"; this.entry.IsEditable = true; this.entry.InvisibleChar = '•'; this.entry.FontSize = 12; this.hbox1.Add (this.entry); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.entry])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.vbox1.Add (this.hbox1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.hbox1])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add (this.vbox1); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show (); this.DeleteEvent += new global::Gtk.DeleteEventHandler (this.OnDeleteEvent); }