public PolicyOptionsWidgetContainer(VBox child) { BinContainer.Attach(this); Add(child); ShowAll(); }
public LogAgentPanelWidget() { BinContainer.Attach(this); var reportingLabel = GettextCatalog.GetString("Report errors and usage information to help {0} improve my experience.", BrandingService.SuiteName); var value = LoggingService.ReportUsage; chkUsage = new CheckButton(reportingLabel); if (value.HasValue) { chkUsage.Active = value.Value; } chkUsage.Toggled += (sender, e) => reportUsage = chkUsage.Active; container = new Gtk.VBox(); container.PackStart(chkUsage, false, false, 0); var privacyStatement = BrandingService.PrivacyStatement; if (!string.IsNullOrEmpty(privacyStatement)) { var privacyLabel = new Xwt.Label { Markup = privacyStatement, Wrap = Xwt.WrapMode.Word }; container.Add(new HBox()); container.PackEnd(privacyLabel.ToGtkWidget(), false, false, 30); } Add(container); ShowAll(); }
protected virtual void Build() { Gui.Initialize((Widget)this); BinContainer.Attach((Bin)this); this.Name = "Gtk.CcsColorButton"; this.evtbx_border = new EventBox(); this.evtbx_border.Name = "evtbx_border"; this.evtbx_bg = new EventBox(); this.evtbx_bg.Name = "evtbx_bg"; this.evtbx_bg.BorderWidth = 1U; this.evtbx_color = new EventBox(); this.evtbx_color.Name = "evtbx_color"; this.evtbx_color.BorderWidth = 3U; this.evtbx_bg.Add((Widget)this.evtbx_color); this.evtbx_border.Add((Widget)this.evtbx_bg); this.Add((Widget)this.evtbx_border); if (this.Child != null) { this.Child.ShowAll(); } this.Hide(); this.evtbx_border.EnterNotifyEvent += new EnterNotifyEventHandler(this.OnMouseEnter); this.evtbx_border.LeaveNotifyEvent += new LeaveNotifyEventHandler(this.OnMouseLeave); this.evtbx_border.ButtonPressEvent += new ButtonPressEventHandler(this.OnButtonPress); this.evtbx_border.ButtonReleaseEvent += new ButtonReleaseEventHandler(this.OnButtonRelease); }
protected virtual void Build() { Gui.Initialize((Widget)this); BinContainer.Attach((Bin)this); this.Name = "Gtk.ImageBin"; this.image_previewOccupy = new Image(); this.image_previewOccupy.Name = "image_previewOccupy"; this.Add((Widget)this.image_previewOccupy); if (this.Child != null) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Gui.Initialize((Widget)this); BinContainer.Attach((Bin)this); this.Name = "Gtk.LabelLink"; this.evtbx_root = new EventBox(); this.evtbx_root.Name = "evtbx_root"; this.label_display = new Label(); this.label_display.Name = "label_display"; this.label_display.LabelProp = Catalog.GetString("label1"); this.evtbx_root.Add((Widget)this.label_display); this.Add((Widget)this.evtbx_root); if (this.Child != null) { this.Child.ShowAll(); } this.Hide(); this.evtbx_root.EnterNotifyEvent += new EnterNotifyEventHandler(this.OnMouseEnter); this.evtbx_root.LeaveNotifyEvent += new LeaveNotifyEventHandler(this.OnMouseLeave); this.evtbx_root.ButtonPressEvent += new ButtonPressEventHandler(this.OnMousePressed); this.evtbx_root.ButtonReleaseEvent += new ButtonReleaseEventHandler(this.OnMouseReleased); }
protected virtual void Build() { Gui.Initialize((Widget)this); BinContainer.Attach((Bin)this); this.WidthRequest = 76; this.HeightRequest = 80; this.Name = "CocoStudio.ControlLib.FileTypeItem"; this.event_root = new EventBox(); this.event_root.WidthRequest = 72; this.event_root.HeightRequest = 72; this.event_root.Name = "event_root"; this.event_root.BorderWidth = 4U; this.vbox_main = new VBox(); this.vbox_main.Name = "vbox_main"; this.vbox_main.Spacing = 2; this.vbox_picMain = new VBox(); this.vbox_picMain.WidthRequest = 48; this.vbox_picMain.HeightRequest = 48; this.vbox_picMain.Name = "vbox_picMain"; this.vbox_picMain.Spacing = 6; this.vbox_top = new VBox(); this.vbox_top.Name = "vbox_top"; this.vbox_top.Spacing = 6; this.vbox_picMain.Add((Widget)this.vbox_top); ((Box.BoxChild) this.vbox_picMain[(Widget)this.vbox_top]).Position = 0; this.hbox_picMain = new HBox(); this.hbox_picMain.WidthRequest = 48; this.hbox_picMain.Name = "hbox_picMain"; this.hbox_picMain.Spacing = 6; this.hbox_left = new HBox(); this.hbox_left.Name = "hbox_left"; this.hbox_left.Spacing = 6; this.hbox_picMain.Add((Widget)this.hbox_left); ((Box.BoxChild) this.hbox_picMain[(Widget)this.hbox_left]).Position = 0; this.img_Icon = new ImageBin(); this.img_Icon.WidthRequest = 32; this.img_Icon.HeightRequest = 32; this.img_Icon.Name = "img_Icon"; this.hbox_picMain.Add((Widget)this.img_Icon); Box.BoxChild boxChild1 = (Box.BoxChild) this.hbox_picMain[(Widget)this.img_Icon]; boxChild1.Position = 1; boxChild1.Expand = false; boxChild1.Fill = false; this.hbox_rightOccupy = new HBox(); this.hbox_rightOccupy.Name = "hbox_rightOccupy"; this.hbox_rightOccupy.Spacing = 6; this.hbox_picMain.Add((Widget)this.hbox_rightOccupy); ((Box.BoxChild) this.hbox_picMain[(Widget)this.hbox_rightOccupy]).Position = 2; this.vbox_picMain.Add((Widget)this.hbox_picMain); Box.BoxChild boxChild2 = (Box.BoxChild) this.vbox_picMain[(Widget)this.hbox_picMain]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; this.vbox_bottom = new VBox(); this.vbox_bottom.Name = "vbox_bottom"; this.vbox_bottom.Spacing = 6; this.vbox_picMain.Add((Widget)this.vbox_bottom); ((Box.BoxChild) this.vbox_picMain[(Widget)this.vbox_bottom]).Position = 2; this.vbox_main.Add((Widget)this.vbox_picMain); Box.BoxChild boxChild3 = (Box.BoxChild) this.vbox_main[(Widget)this.vbox_picMain]; boxChild3.Position = 0; boxChild3.Expand = false; this.lab_Name = new Label(); this.lab_Name.Name = "lab_Name"; this.lab_Name.LabelProp = Catalog.GetString("场景"); this.vbox_main.Add((Widget)this.lab_Name); Box.BoxChild boxChild4 = (Box.BoxChild) this.vbox_main[(Widget)this.lab_Name]; boxChild4.Position = 1; boxChild4.Expand = false; boxChild4.Fill = false; this.event_root.Add((Widget)this.vbox_main); this.Add((Widget)this.event_root); if (this.Child != null) { this.Child.ShowAll(); } this.Hide(); }
public TemplatePickerWidget() { BinContainer.Attach(this); infoBox.BorderWidth = 4; infoBox.Spacing = 4; infoHeaderLabel.Wrap = true; infoHeaderLabel.Xalign = 0; infoDecriptionLabel.Wrap = true; infoDecriptionLabel.Xalign = 0; infoDecriptionLabel.Yalign = 0; infoBox.SizeAllocated += delegate { var w = infoBox.Allocation.Width - 10; if (infoHeaderLabel.WidthRequest != w) { infoHeaderLabel.WidthRequest = w; infoDecriptionLabel.WidthRequest = w; } }; recentSection = sectionList.AddSection(GettextCatalog.GetString("Recent Templates"), recentTemplateCatView); installedSection = sectionList.AddSection(GettextCatalog.GetString("Installed Templates"), installedTemplateCatView); onlineSection = sectionList.AddSection(GettextCatalog.GetString("Online Templates"), onlineTemplateCatView); recentSection.Activated += delegate { LoadTemplatesIntoView(recentTemplates); templateView.SetCategoryFilter(recentTemplateCatView.GetSelection()); }; installedSection.Activated += delegate { LoadTemplatesIntoView(installedTemplates); templateView.SetCategoryFilter(installedTemplateCatView.GetSelection()); }; onlineSection.Activated += delegate { LoadTemplatesIntoView(onlineTemplates); templateView.SetCategoryFilter(onlineTemplateCatView.GetSelection()); }; recentTemplateCatView.SelectionChanged += delegate { if (recentSection.IsActive) { templateView.SetCategoryFilter(recentTemplateCatView.GetSelection()); } }; installedTemplateCatView.SelectionChanged += delegate { if (installedSection.IsActive) { templateView.SetCategoryFilter(installedTemplateCatView.GetSelection()); } }; onlineTemplateCatView.SelectionChanged += delegate { if (onlineSection.IsActive) { templateView.SetCategoryFilter(onlineTemplateCatView.GetSelection()); } }; searchEntry.WidthRequest = 150; searchEntry.EmptyMessage = GettextCatalog.GetString("Search…"); searchEntry.Changed += delegate { templateView.SetSearchFilter(searchEntry.Entry.Text); }; searchEntry.Activated += delegate { templateView.Child.GrabFocus(); }; searchEntry.Ready = true; searchEntry.Show(); installedTemplateCatView.SelectionChanged += delegate(object sender, EventArgs e) { var selection = installedTemplateCatView.GetSelection(); templateView.SetCategoryFilter(selection); }; templateView.SelectionChanged += TemplateSelectionChanged; templateView.DoubleClicked += delegate { OnActivated(); }; Add(hsplit); hsplit.Pack1(sectionList, true, false); hsplit.Pack2(rightVbox, true, false); rightVbox.PackStart(searchHbox, false, false, 0); rightVbox.Spacing = 6; searchHbox.PackStart(new Label(), true, true, 0); searchHbox.PackStart(searchEntry, false, false, 0); rightVbox.PackStart(vsplit, true, true, 0); vsplit.Pack1(templateView, true, false); vsplit.Pack2(infoScrolledWindow, true, false); infoScrolledWindow.ShowBorderLine = true; var vp = new Viewport(); vp.ShadowType = ShadowType.None; vp.Add(infoBox); infoScrolledWindow.Add(vp); infoBox.PackStart(infoHeaderLabel, false, false, 0); infoBox.PackStart(infoDecriptionLabel, true, true, 0); hsplit.ShowAll(); //sane proportions for the splitter children templateView.HeightRequest = 200; infoScrolledWindow.HeightRequest = 75; sectionList.WidthRequest = 150; rightVbox.WidthRequest = 300; sectionList.ActiveIndex = 1; }
protected virtual void Build() { Gui.Initialize(this); // Widget Mono.Addins.Gui.AddinInfoView BinContainer.Attach(this); this.Name = "Mono.Addins.Gui.AddinInfoView"; // Container child Mono.Addins.Gui.AddinInfoView.Gtk.Container+ContainerChild this.ebox = new global::Gtk.EventBox(); this.ebox.Name = "ebox"; // Container child ebox.Gtk.Container+ContainerChild this.vbox6 = new global::Gtk.VBox(); this.vbox6.Name = "vbox6"; // Container child vbox6.Gtk.Box+BoxChild this.boxHeader = new global::Gtk.EventBox(); this.boxHeader.Name = "boxHeader"; // Container child boxHeader.Gtk.Container+ContainerChild this.hbox2 = new global::Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.imageHeader = new global::Gtk.Image(); this.imageHeader.Name = "imageHeader"; this.imageHeader.Pixbuf = IconLoader.LoadIcon(this, "gtk-dialog-warning", global::Gtk.IconSize.Menu); this.hbox2.Add(this.imageHeader); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.imageHeader])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.labelHeader = new global::Gtk.Label(); this.labelHeader.WidthRequest = 250; this.labelHeader.Name = "labelHeader"; this.labelHeader.Xalign = 0F; this.labelHeader.LabelProp = global::Mono.Unix.Catalog.GetString("label1"); this.labelHeader.Wrap = true; this.hbox2.Add(this.labelHeader); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.labelHeader])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.boxHeader.Add(this.hbox2); this.vbox6.Add(this.boxHeader); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox6 [this.boxHeader])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; this.vbox3.BorderWidth = ((uint)(12)); // Container child vbox3.Gtk.Box+BoxChild this.headerBox = new global::Gtk.HBox(); this.headerBox.Name = "headerBox"; this.headerBox.Spacing = 6; // Container child headerBox.Gtk.Box+BoxChild this.boxTitle = new global::Gtk.HBox(); this.boxTitle.Name = "boxTitle"; this.boxTitle.Spacing = 6; // Container child boxTitle.Gtk.Box+BoxChild this.vbox4 = new global::Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 3; // Container child vbox4.Gtk.Box+BoxChild this.labelName = new global::Gtk.Label(); this.labelName.WidthRequest = 280; this.labelName.Name = "labelName"; this.labelName.Xalign = 0F; this.labelName.LabelProp = global::Mono.Unix.Catalog.GetString("<b><big>Some Addin</big></b>"); this.labelName.UseMarkup = true; this.labelName.Wrap = true; this.vbox4.Add(this.labelName); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.labelName])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.labelVersion = new global::Gtk.Label(); this.labelVersion.WidthRequest = 280; this.labelVersion.Name = "labelVersion"; this.labelVersion.Xalign = 0F; this.labelVersion.LabelProp = global::Mono.Unix.Catalog.GetString("Version 2.6"); this.labelVersion.Wrap = true; this.vbox4.Add(this.labelVersion); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.labelVersion])); w6.Position = 1; w6.Expand = false; w6.Fill = false; this.boxTitle.Add(this.vbox4); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.boxTitle [this.vbox4])); w7.Position = 0; w7.Expand = false; w7.Fill = false; this.headerBox.Add(this.boxTitle); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.headerBox [this.boxTitle])); w8.Position = 0; this.vbox3.Add(this.headerBox); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.headerBox])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.scrolledwindow = new global::Gtk.ScrolledWindow(); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.HscrollbarPolicy = ((global::Gtk.PolicyType)(2)); // Container child scrolledwindow.Gtk.Container+ContainerChild global::Gtk.Viewport w10 = new global::Gtk.Viewport(); w10.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.ebox2 = new global::Gtk.EventBox(); this.ebox2.Name = "ebox2"; // Container child ebox2.Gtk.Container+ContainerChild this.vboxDesc = new global::Gtk.VBox(); this.vboxDesc.Name = "vboxDesc"; this.vboxDesc.Spacing = 6; // Container child vboxDesc.Gtk.Box+BoxChild this.labelDesc = new global::Gtk.Label(); this.labelDesc.WidthRequest = 250; this.labelDesc.Name = "labelDesc"; this.labelDesc.Xalign = 0F; this.labelDesc.LabelProp = global::Mono.Unix.Catalog.GetString("Long description of the extension. Long description of the extension. Long description of the extension. Long description of the extension. Long description of the extension. Long description of the extension. "); this.labelDesc.Wrap = true; this.vboxDesc.Add(this.labelDesc); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vboxDesc [this.labelDesc])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child vboxDesc.Gtk.Box+BoxChild this.hbox3 = new global::Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.urlButton = new global::Gtk.Button(); this.urlButton.CanFocus = true; this.urlButton.Name = "urlButton"; this.urlButton.UseUnderline = true; this.urlButton.Relief = ((global::Gtk.ReliefStyle)(2)); this.urlButton.Label = global::Mono.Unix.Catalog.GetString("More information"); global::Gtk.Image w12 = new global::Gtk.Image(); w12.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("web-search-16.png"); this.urlButton.Image = w12; this.hbox3.Add(this.urlButton); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.urlButton])); w13.Position = 0; w13.Expand = false; w13.Fill = false; this.vboxDesc.Add(this.hbox3); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vboxDesc [this.hbox3])); w14.PackType = ((global::Gtk.PackType)(1)); w14.Position = 2; w14.Expand = false; w14.Fill = false; this.ebox2.Add(this.vboxDesc); w10.Add(this.ebox2); this.scrolledwindow.Add(w10); this.vbox3.Add(this.scrolledwindow); global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.scrolledwindow])); w18.Position = 1; this.vbox6.Add(this.vbox3); global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.vbox6 [this.vbox3])); w19.Position = 1; // Container child vbox6.Gtk.Box+BoxChild this.eboxButs = new global::Gtk.EventBox(); this.eboxButs.Name = "eboxButs"; // Container child eboxButs.Gtk.Container+ContainerChild this.hbox1 = new global::Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.btnInstall = new global::Gtk.Button(); this.btnInstall.CanFocus = true; this.btnInstall.Name = "btnInstall"; this.btnInstall.UseUnderline = true; this.btnInstall.Label = global::Mono.Unix.Catalog.GetString("Install..."); global::Gtk.Image w20 = new global::Gtk.Image(); w20.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("download-16.png"); this.btnInstall.Image = w20; this.hbox1.Add(this.btnInstall); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnInstall])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.btnUpdate = new global::Gtk.Button(); this.btnUpdate.CanFocus = true; this.btnUpdate.Name = "btnUpdate"; this.btnUpdate.UseUnderline = true; this.btnUpdate.Label = global::Mono.Unix.Catalog.GetString("Update"); global::Gtk.Image w22 = new global::Gtk.Image(); w22.Pixbuf = global::Gdk.Pixbuf.LoadFromResource("download-16.png"); this.btnUpdate.Image = w22; this.hbox1.Add(this.btnUpdate); global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnUpdate])); w23.Position = 1; w23.Expand = false; w23.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.btnDisable = new global::Gtk.Button(); this.btnDisable.CanFocus = true; this.btnDisable.Name = "btnDisable"; this.btnDisable.UseUnderline = true; this.btnDisable.Label = global::Mono.Unix.Catalog.GetString("Disable"); this.hbox1.Add(this.btnDisable); global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnDisable])); w24.Position = 2; w24.Expand = false; w24.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.btnUninstall = new global::Gtk.Button(); this.btnUninstall.CanFocus = true; this.btnUninstall.Name = "btnUninstall"; this.btnUninstall.UseUnderline = true; this.btnUninstall.Label = global::Mono.Unix.Catalog.GetString("_Uninstall..."); this.hbox1.Add(this.btnUninstall); global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.btnUninstall])); w25.Position = 3; w25.Expand = false; w25.Fill = false; this.eboxButs.Add(this.hbox1); this.vbox6.Add(this.eboxButs); global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.vbox6 [this.eboxButs])); w27.Position = 2; w27.Expand = false; w27.Fill = false; this.ebox.Add(this.vbox6); this.Add(this.ebox); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.urlButton.Clicked += new global::System.EventHandler(this.OnUrlButtonClicked); this.btnInstall.Clicked += new global::System.EventHandler(this.OnBtnInstallClicked); this.btnUpdate.Clicked += new global::System.EventHandler(this.OnBtnUpdateClicked); this.btnDisable.Clicked += new global::System.EventHandler(this.OnBtnDisableClicked); this.btnUninstall.Clicked += new global::System.EventHandler(this.OnBtnUninstallClicked); }
public NewProjectOptionsWidget() { BinContainer.Attach(this); AttachOptions fill = AttachOptions.Fill; AttachOptions expand = AttachOptions.Expand | fill; AttachOptions shrink = AttachOptions.Shrink; var table = new Table(5, 3, false) { ColumnSpacing = 4, RowSpacing = 4, }; uint row = 0; var header = new Label(GettextCatalog.GetString("<b>Project Options</b>")) { Xalign = 0, UseMarkup = true, }; table.Attach(header, 0, 3, row, row + 1, expand, shrink, 0, 0); row++; nameEntry = new Entry(); nameEntry.Changed += NameChanged; var nameLabel = new Label(GettextCatalog.GetString("N_ame:")) { UseUnderline = true, MnemonicWidget = nameEntry, Xalign = 0, }; table.Attach(nameLabel, 0, 1, row, row + 1, fill, shrink, 0, 0); table.Attach(nameEntry, 1, 3, row, row + 1, expand, shrink, 0, 0); row++; locationEntry = new FileEntry(); locationEntry.PathChanged += delegate { UpdateState(); }; var locationLabel = new Label(GettextCatalog.GetString("L_ocation:")) { UseUnderline = true, MnemonicWidget = locationEntry, Xalign = 0, }; table.Attach(locationLabel, 0, 1, row, row + 1, fill, shrink, 0, 0); table.Attach(locationEntry, 1, 3, row, row + 1, expand, shrink, 0, 0); solutionNameEntry = new Entry(); solutionNameEntry.Sensitive = false; solutionNameEntry.Changed += delegate { UpdateState(); }; solutionNameLabel = new Label(GettextCatalog.GetString("_Solution name:")) { UseUnderline = true, MnemonicWidget = solutionNameEntry, Xalign = 0, }; createSolutionDirectoryCheck = new CheckButton(GettextCatalog.GetString("_Create directory for solution")) { UseUnderline = true, }; createSolutionDirectoryCheck.Toggled += delegate { solutionNameEntry.Sensitive = createSolutionDirectoryCheck.Active; UpdateState(); }; row++; table.Attach(solutionNameLabel, 0, 1, row, row + 1, fill, shrink, 0, 0); table.Attach(solutionNameEntry, 1, 2, row, row + 1, expand, shrink, 0, 0); table.Attach(createSolutionDirectoryCheck, 2, 3, row, row + 1, fill, shrink, 0, 0); row++; saveInLabel = new Label() { Xalign = 0, }; table.Attach(saveInLabel, 1, 3, row, row + 1, fill, shrink, 0, 0); table.ShowAll(); this.Add(table); }