private void Build() { var swScroll = new Gtk.ScrolledWindow(); // Drawing area this.drawingArea = new Gtk.DrawingArea(); this.drawingArea.ExposeEvent += (o, args) => this.OnExposeDrawingArea(); // Layout swScroll.AddWithViewport( this.drawingArea ); this.VBox.PackStart( swScroll, true, true, 5 ); this.AddButton( Gtk.Stock.Close, Gtk.ResponseType.Close ); // Polish this.WindowPosition = Gtk.WindowPosition.CenterOnParent; this.Resize( 320, 200 ); this.SetGeometryHints( this, new Gdk.Geometry() { MinWidth = 320, MinHeight = 200 }, Gdk.WindowHints.MinSize ); }
public override Gtk.Widget GetVisualizerWidget(ObjectValue val) { var ops = DebuggingService.DebuggerSession.EvaluationOptions.Clone(); string file = Path.GetTempFileName(); Gdk.Pixbuf pixbuf; ops.AllowTargetInvoke = true; try { var pix = (RawValue)val.GetRawValue(ops); pix.CallMethod("Save", file, "png"); pixbuf = new Gdk.Pixbuf(file); } finally { File.Delete(file); } var sc = new Gtk.ScrolledWindow(); sc.ShadowType = Gtk.ShadowType.In; sc.HscrollbarPolicy = Gtk.PolicyType.Automatic; sc.VscrollbarPolicy = Gtk.PolicyType.Automatic; var image = new Gtk.Image(pixbuf); sc.AddWithViewport(image); sc.ShowAll(); return(sc); }
public override Gtk.Widget GetVisualizerWidget (ObjectValue val) { var ops = DebuggingService.DebuggerSession.EvaluationOptions.Clone (); string file = Path.GetTempFileName (); Gdk.Pixbuf pixbuf; ops.AllowTargetInvoke = true; try { var pix = (RawValue) val.GetRawValue (ops); pix.CallMethod ("Save", file, "png"); pixbuf = new Gdk.Pixbuf (file); } finally { File.Delete (file); } var sc = new Gtk.ScrolledWindow (); sc.ShadowType = Gtk.ShadowType.In; sc.HscrollbarPolicy = Gtk.PolicyType.Automatic; sc.VscrollbarPolicy = Gtk.PolicyType.Automatic; var image = new Gtk.Image (pixbuf); sc.AddWithViewport (image); sc.ShowAll (); return sc; }
private void Build() { var hBox = new Gtk.HBox(false, 5); var vbButtons = new Gtk.VBox(false, 5); var swView = new Gtk.ScrolledWindow(); this.tvCategories = new Gtk.TreeView(); swView.AddWithViewport(this.tvCategories); this.BuildButtons(vbButtons); hBox.PackStart(swView, true, true, 5); hBox.PackStart(vbButtons, false, false, 5); this.AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close); this.VBox.PackStart(hBox, true, true, 5); this.SetGeometryHints( this, new Gdk.Geometry() { MinHeight = 200, MinWidth = 320, }, Gdk.WindowHints.MinSize ); this.WindowPosition = Gtk.WindowPosition.CenterOnParent; this.Shown += (object sender, EventArgs e) => this.OnShow(); this.Modal = true; }
private void Build() { this.BuildActions(); var swScroll = new Gtk.ScrolledWindow(); var hBox = new Gtk.HBox(false, 5); var vBox = new Gtk.VBox(false, 5); //var hBoxButton = new Gtk.HBox(false, 5); to eliminate // Drawing area this.drawingArea = new Gtk.DrawingArea(); this.drawingArea.ExposeEvent += (o, args) => this.OnExposeDrawingArea(); //Menu var btPeso = new Gtk.Button(new Gtk.Label(this.actPeso.Label)); var btAbdomen = new Gtk.Button(new Gtk.Label(this.actAbdomen.Label)); var btEjerciciosTiempo = new Gtk.Button(new Gtk.Label(this.actEjerTime.Label)); var btEjerciciosActividades = new Gtk.Button(new Gtk.Label(this.actEjerActivities.Label)); var btEjerciciosDistancia = new Gtk.Button(new Gtk.Label(this.actEjerDistance.Label)); btPeso.Clicked += (sender, e) => this.actPeso.Activate(); btAbdomen.Clicked += (sender, e) => this.actAbdomen.Activate(); btEjerciciosTiempo.Clicked += (sender, e) => this.actEjerTime.Activate(); btEjerciciosDistancia.Clicked += (sender, e) => this.actEjerDistance.Activate(); btEjerciciosActividades.Clicked += (sender, e) => this.actEjerActivities.Activate(); // Layout swScroll.AddWithViewport(this.drawingArea); vBox.PackStart(btPeso, false, true, 2); vBox.PackStart(btAbdomen, false, true, 2); vBox.PackStart(btEjerciciosTiempo, false, true, 2); vBox.PackStart(btEjerciciosActividades, false, true, 2); vBox.PackStart(btEjerciciosDistancia, false, true, 2); hBox.PackStart(drawingArea, true, true, 10); hBox.PackStart(swScroll, true, true, 5); hBox.PackStart(vBox, false, true, 5); //this.VBox.PackStart( swScroll, true, true, 5 ); to eliminate this.VBox.PackStart(hBox, true, true, 5); this.AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close); // Polish this.WindowPosition = Gtk.WindowPosition.CenterOnParent; this.Resize(400, 200); this.SetGeometryHints( this, new Gdk.Geometry() { MinWidth = 400, MinHeight = 200 }, Gdk.WindowHints.MinSize ); }
private void OnViewDrawing() { var dlg = new Gtk.Dialog("Drawing", this, Gtk.DialogFlags.Modal); var swScroll = new Gtk.ScrolledWindow(); var rnd = new System.Random(); int[][] valuesSeries = new int[3][]; // Create series for (int i = 0; i < valuesSeries.Length; ++i) { valuesSeries[i] = new int[12]; for (int j = 0; j < valuesSeries[i].Length; ++j) { valuesSeries[i][j] = rnd.Next(50); } } // Drawing area Chart chart = new Chart(512, 512) { LegendY = "Sells (in thousands)", LegendX = "Months", Values = valuesSeries }; // Layout swScroll.AddWithViewport(chart); dlg.VBox.PackStart(swScroll, true, true, 5); dlg.AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close); // Polish dlg.WindowPosition = Gtk.WindowPosition.CenterOnParent; dlg.Resize(640, 640); dlg.SetGeometryHints( dlg, new Gdk.Geometry() { MinWidth = 640, MinHeight = 640 }, Gdk.WindowHints.MinSize ); dlg.ShowAll(); dlg.Run(); dlg.Destroy(); }
/// <summary> /// Genera la vista que muestra el gráfico en la aplicación actualizando el <see cref="DrawingArea"></see> /// </summary> /// <returns>La vista que contiene el gráfico a mostrar</returns> private Gtk.HBox GraphicView() { var RightBox = new Gtk.VBox(false, 5); var ViewBox = new Gtk.HBox(false, 5); var Scrollable = new Gtk.ScrolledWindow(); // ------------------INICIALIZACION--------------------- var WeightButton = new Gtk.Button("WEIGHT"); WeightButton.Clicked += (o, args) => GraphicWeight(); var SizeButton = new Gtk.Button("SIZE"); SizeButton.Clicked += (o, args) => GraphicSize(); var TimeButton = new Gtk.Button("TIME"); TimeButton.Clicked += (o, args) => GraphicTime(); var DistButton = new Gtk.Button("DIST"); DistButton.Clicked += (o, args) => GraphicDist(); // -------------------COMPOSICION------------------------ DrawingArea = new Gtk.DrawingArea(); Scrollable.AddWithViewport(DrawingArea); // Fill Boxs. RightBox.Add(WeightButton); RightBox.Add(SizeButton); RightBox.Add(TimeButton); RightBox.Add(DistButton); // Compose main Box. ViewBox.Add(Scrollable); ViewBox.Add(RightBox); // Add main box to the window. return(ViewBox); }
private void BuildTable() { var swView = new Gtk.ScrolledWindow(); this.tvTable = new Gtk.TreeView(); this.tvTable.EnableSearch = false; this.ttTable = new GtkUtil.TableTextView(this.tvTable, Headers.Count, Headers.Count); this.ttTable.Headers = Headers; this.tvTable.ButtonReleaseEvent += OnTableClick; this.tvTable.RowActivated += (sender, evt) => this.OnEdit(); this.lblEmptyExplanation = new Gtk.Label() { UseMarkup = true }; swView.AddWithViewport(this.tvTable); this.vbMain.PackStart(swView, true, true, 5); this.vbMain.PackStart(this.lblEmptyExplanation, false, false, 5); }
public override Gtk.Widget GetVisualizerWidget (ObjectValue val) { Gdk.Pixbuf pixbuf; string file = Path.GetTempFileName (); try { RawValue pix = (RawValue) val.GetRawValue (); pix.CallMethod ("Save", file, "png"); pixbuf = new Gdk.Pixbuf (file); } finally { File.Delete (file); } Gtk.ScrolledWindow sc = new Gtk.ScrolledWindow (); sc.ShadowType = Gtk.ShadowType.In; sc.HscrollbarPolicy = Gtk.PolicyType.Automatic; sc.VscrollbarPolicy = Gtk.PolicyType.Automatic; Gtk.Image image = new Gtk.Image (pixbuf); sc.AddWithViewport (image); sc.ShowAll (); return sc; }
public Gtk.Widget GetVisualizerWidget(ObjectValue val) { Gdk.Pixbuf pixbuf; string file = Path.GetTempFileName(); try { RawValue pix = (RawValue)val.GetRawValue(); pix.CallMethod("Save", file, "png"); pixbuf = new Gdk.Pixbuf(file); } finally { File.Delete(file); } Gtk.ScrolledWindow sc = new Gtk.ScrolledWindow(); sc.ShadowType = Gtk.ShadowType.In; sc.HscrollbarPolicy = Gtk.PolicyType.Automatic; sc.VscrollbarPolicy = Gtk.PolicyType.Automatic; Gtk.Image image = new Gtk.Image(pixbuf); sc.AddWithViewport(image); sc.ShowAll(); return(sc); }
/// <summary> /// Build the UI /// </summary> private void Build() { var swScroll = new Gtk.ScrolledWindow(); this.drawingArea = new Gtk.DrawingArea(); this.drawingArea.SetSizeRequest( 640, 480 ); swScroll.AddWithViewport( this.drawingArea ); this.Add( swScroll ); // Polish this.SetGeometryHints( this, new Gdk.Geometry() { MinWidth = 500, MinHeight = 350 }, Gdk.WindowHints.MinSize ); // Events this.DeleteEvent += (o, args) => Gtk.Application.Quit(); this.drawingArea.ExposeEvent += (o, args) => this.OnExposed(); this.ShowAll(); }
public SelectIconDialog(Gtk.Window parent, Stetic.IProject project) { this.parent = parent; this.project = project; Glade.XML xml = new Glade.XML(null, "stetic.glade", "SelectIconDialog", null); xml.Autoconnect(this); // Stock icon list iconList = new StockIconList(); iconList.SelectionChanged += new EventHandler(OnIconSelectionChanged); iconScrolledwindow.AddWithViewport(iconList); // Custom icon list customIconList = new ProjectIconList(project, project.IconFactory); customIconList.SelectionChanged += new EventHandler(OnCustomIconSelectionChanged); customIconScrolledwindow.AddWithViewport(customIconList); dialog.ShowAll(); UpdateIconSelection(); UpdateButtons(); }
Gtk.Widget CreateFakeWidget (string typeName) { Stetic.Custom c = new Stetic.Custom (); // Give it some default size c.WidthRequest = 20; c.HeightRequest = 20; Gtk.Container box = null; switch (typeClassDescriptor.Name) { case "Gtk.Alignment": box = new Gtk.Alignment (0.5f, 0.5f, 1f, 1f); break; case "Gtk.Fixed": box = new Gtk.Alignment (0.5f, 0.5f, 1f, 1f); break; case "Gtk.Frame": box = new Gtk.Frame (); break; case "Gtk.Box": case "Gtk.HBox": { Gtk.HBox cc = new Gtk.HBox (); cc.PackStart (c, true, true, 0); return cc; } case "Gtk.VBox": { Gtk.VBox cc = new Gtk.VBox (); cc.PackStart (c, true, true, 0); return cc; } case "Gtk.Paned": case "Gtk.VPaned": { Gtk.VPaned cc = new Gtk.VPaned (); cc.Add1 (c); return cc; } case "Gtk.HPaned": { Gtk.HPaned cc = new Gtk.HPaned (); cc.Add1 (c); return cc; } case "Gtk.Notebook": { Gtk.Notebook nb = new Gtk.Notebook (); nb.ShowTabs = false; nb.AppendPage (c, null); return nb; } case "Gtk.ScrolledWindow": { Gtk.ScrolledWindow cc = new Gtk.ScrolledWindow (); cc.VscrollbarPolicy = Gtk.PolicyType.Never; cc.HscrollbarPolicy = Gtk.PolicyType.Never; cc.AddWithViewport (c); return cc; } case "Gtk.Table": { Gtk.Table t = new Gtk.Table (1, 1, false); t.Attach (c, 0, 1, 0, 1); return t; } case "Gtk.ButtonBox": return new Gtk.HButtonBox (); } if (box != null) { box.Add (c); return box; } else { Stetic.CustomWidget custom = new Stetic.CustomWidget (); if (custom.Child != null) custom.Remove (custom.Child); custom.Add (c); return custom; } }
public DocumentationDialog(Documentation _doc) { ContentArea.PackStart(VBox, true, true, 0); documentation = _doc; Gtk.Label nameLabel = new Gtk.Label("<b>" + documentation.Name + "</b>"); nameLabel.Wrap = true; nameLabel.UseUnderline = false; nameLabel.UseMarkup = true; nameLabel.Xalign = 0.5f; VBox.PackStart(nameLabel, false, false, 10); string desc = documentation.Description; if (desc == null) { desc = ""; } var subidEntries = documentation.Keys; Gtk.Label descLabel = new Gtk.Label(desc); descLabel.Wrap = true; descLabel.UseUnderline = false; descLabel.Xalign = 0; descLabel.WidthChars = 50; descLabel.MaxWidthChars = 50; VBox.PackStart(descLabel, false, false, 0); // Create SubID table if (subidEntries.Count > 0) { Gtk.Label valuesLabel = new Gtk.Label("\nValues:"); valuesLabel.UseUnderline = false; valuesLabel.Xalign = 0; VBox.PackStart(valuesLabel, false, false, 0); Gtk.Table subidTable = new Gtk.Table(2, (uint)subidEntries.Count * 2, false); uint subidX = 0; uint subidY = 0; foreach (string key in subidEntries) { string value = documentation.GetField(key); Gtk.Label l1 = new Gtk.Label(key); l1.UseUnderline = false; l1.Xalign = 0; l1.Yalign = 0; Gtk.Label l2 = new Gtk.Label(value); l2.UseUnderline = false; l2.Wrap = true; l2.Xalign = 0; l2.Yalign = 0; l2.WidthChars = 50; l2.MaxWidthChars = 50; subidTable.Attach(l1, subidX + 0, subidX + 1, subidY, subidY + 1, Gtk.AttachOptions.Fill, Gtk.AttachOptions.Fill, 4, 0); subidTable.Attach(l2, subidX + 2, subidX + 3, subidY, subidY + 1); subidY++; subidTable.Attach(new Gtk.HSeparator(), subidX + 0, subidX + 3, subidY, subidY + 1, Gtk.AttachOptions.Fill, 0, 0, 0); subidY++; } subidTable.Attach(new Gtk.VSeparator(), subidX + 1, subidX + 2, 0, subidTable.NRows, 0, Gtk.AttachOptions.Fill, 4, 0); Gtk.ScrolledWindow scrolledWindow = new Gtk.ScrolledWindow(); scrolledWindow.AddWithViewport(subidTable); scrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn; scrolledWindow.SetPolicy(Gtk.PolicyType.Never, Gtk.PolicyType.Automatic); subidTable.ShowAll(); // Determine width/height to request on scrolledWindow Gtk.Requisition subidTableRequest = subidTable.SizeRequest(); int width = Math.Min(subidTableRequest.Width + 20, 700); width = Math.Max(width, 400); int height = Math.Min(subidTableRequest.Height + 5, 400); height = Math.Max(height, 200); scrolledWindow.SetSizeRequest(width, height); VBox.PackStart(scrolledWindow, true, true, 0); } AddActionWidget(new Gtk.Button("gtk-ok"), 0); ShowAll(); }
Gtk.Widget CreateFakeWidget(string typeName) { Stetic.Custom c = new Stetic.Custom(); // Give it some default size c.WidthRequest = 20; c.HeightRequest = 20; Gtk.Container box = null; switch (typeClassDescriptor.Name) { case "Gtk.Alignment": box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f); break; case "Gtk.Fixed": box = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f); break; case "Gtk.Frame": box = new Gtk.Frame(); break; case "Gtk.Box": case "Gtk.HBox": { Gtk.HBox cc = new Gtk.HBox(); cc.PackStart(c, true, true, 0); return(cc); } case "Gtk.VBox": { Gtk.VBox cc = new Gtk.VBox(); cc.PackStart(c, true, true, 0); return(cc); } case "Gtk.Paned": case "Gtk.VPaned": { Gtk.VPaned cc = new Gtk.VPaned(); cc.Add1(c); return(cc); } case "Gtk.HPaned": { Gtk.HPaned cc = new Gtk.HPaned(); cc.Add1(c); return(cc); } case "Gtk.Notebook": { Gtk.Notebook nb = new Gtk.Notebook(); nb.ShowTabs = false; nb.AppendPage(c, null); return(nb); } case "Gtk.ScrolledWindow": { Gtk.ScrolledWindow cc = new Gtk.ScrolledWindow(); cc.VscrollbarPolicy = Gtk.PolicyType.Never; cc.HscrollbarPolicy = Gtk.PolicyType.Never; cc.AddWithViewport(c); return(cc); } case "Gtk.Table": { Gtk.Table t = new Gtk.Table(1, 1, false); t.Attach(c, 0, 1, 0, 1); return(t); } case "Gtk.ButtonBox": return(new Gtk.HButtonBox()); } if (box != null) { box.Add(c); return(box); } else { Stetic.CustomWidget custom = new Stetic.CustomWidget(); if (custom.Child != null) { custom.Remove(custom.Child); } custom.Add(c); return(custom); } }
private void BuildNotebook() { var vBox = new Gtk.VBox( false, 5 ); var hBox = new Gtk.HPaned(); this.nbDocPages = new Gtk.Notebook(); this.nbDocPages.SwitchPage += (o, args) => this.OnCurrentPageChanged(); // Text view for the document var swScrollText = new Gtk.ScrolledWindow(); this.txtDocument = new Gtk.TextView { Editable = false }; swScrollText.AddWithViewport( this.txtDocument ); this.txtDocument.FocusOutEvent += (o, args) => this.StoreQuestionText(); // Test treeview this.tvDocument = new Gtk.TreeView(); var swScroll = new Gtk.ScrolledWindow(); var frmTest = new Gtk.Frame( "Test" ); ( (Gtk.Label) frmTest.LabelWidget ).Markup = "<b>Test</b>"; frmTest.Add( swScroll ); swScroll.AddWithViewport( this.tvDocument ); // Frame question var frmQuestion = new Gtk.Frame( "Question" ); var swScrolledQuestion = new Gtk.ScrolledWindow(); ( (Gtk.Label) frmQuestion.LabelWidget ).Markup = "<b>Question</b>"; this.edQuestionText = new Gtk.TextView(); this.edQuestionText.KeyReleaseEvent += (o, args) => this.OnQuestionTextChanged(); swScrolledQuestion.AddWithViewport( edQuestionText ); frmQuestion.Add( swScrolledQuestion ); vBox.PackStart( frmQuestion, false, false, 5 ); // Frame answers var bttAnswers = new Gtk.HButtonBox(); var vBoxAnswers = new Gtk.VBox( false, 5 ); var frmAnswer = new Gtk.Frame( "Answer" ); var hBoxAnswers = new Gtk.HBox( false, 5 ); var hBoxCorrect = new Gtk.HBox( false, 5 ); var swScrolledAnswers = new Gtk.ScrolledWindow(); ( (Gtk.Label) frmAnswer.LabelWidget ).Markup = "<b>Answer</b>"; this.tvAnswers = new Gtk.TreeView(); swScrolledAnswers.Add( this.tvAnswers ); this.btAddAnswer = new Gtk.Button( new Gtk.Image( this.iconAdd.ScaleSimple( 16, 16, InterpType.Bilinear ) ) ); this.btAddAnswer.Clicked += (sender, e) => this.AddAnswer(); this.btRemoveAnswer = new Gtk.Button( new Gtk.Image( this.iconRemove.ScaleSimple( 16, 16, InterpType.Bilinear ) ) ); this.btRemoveAnswer.Clicked += (sender, e) => this.RemoveAnswer(); bttAnswers.Add( this.btAddAnswer ); bttAnswers.Add( this.btRemoveAnswer ); bttAnswers.Layout = Gtk.ButtonBoxStyle.Center; bttAnswers.Spacing = 20; hBoxAnswers.PackStart( swScrolledAnswers, true, true, 5 ); vBoxAnswers.PackStart( hBoxAnswers, true, true, 5 ); this.spNumberValidAnswer = new Gtk.SpinButton( 1, 20, 1 ); this.spNumberValidAnswer.ValueChanged += (o, args) => this.OnCorrectAnswerChanged(); hBoxCorrect.PackStart( new Gtk.Label( "Correct answer:" ), false, false, 5 ); hBoxCorrect.PackStart( this.spNumberValidAnswer, false, false, 5 ); hBoxCorrect.PackEnd( bttAnswers, false, false, 5 ); vBoxAnswers.PackStart( hBoxCorrect, false, false, 5 ); frmAnswer.Add( vBoxAnswers ); vBox.PackStart( frmAnswer, true, true, 5 ); // Layout hBox.Pack1( frmTest, false, false ); hBox.Pack2( vBox, false, false ); this.nbDocPages.AppendPage( hBox, new Gtk.Label( "Edit" ) ); this.nbDocPages.AppendPage( swScrollText, new Gtk.Label( "Document" ) ); this.nbDocPages.Page = 0; }
private void AddTableToNotebook(Gtk.Table table) { Gtk.ScrolledWindow frame = new Gtk.ScrolledWindow(); frame.ShadowType = Gtk.ShadowType.None; frame.SetPolicy(Gtk.PolicyType.Automatic, Gtk.PolicyType.Automatic); frame.AddWithViewport(table); table.RowSpacing = 1; table.ColumnSpacing = 0; _notebook.AppendPage(frame, new Gtk.Label(string.Empty)); }
public NoteDialog(Gtk.Window parentWindow, ITask task) : base() { this.ParentWindow = parentWindow.GdkWindow; this.task = task; this.Title = String.Format(Catalog.GetString("Notes for: {0:s}"), task.Text); this.HasSeparator = false; this.SetSizeRequest(500, 320); this.Icon = Utilities.GetIcon("tasque", 16); //this.Flags = Gtk.DialogFlags.DestroyWithParent; sw.VscrollbarPolicy = Gtk.PolicyType.Automatic; sw.HscrollbarPolicy = Gtk.PolicyType.Never; sw.BorderWidth = 0; sw.CanFocus = true; sw.Show(); Gtk.EventBox innerEb = new Gtk.EventBox(); innerEb.BorderWidth = 0; targetVBox = new Gtk.VBox(); targetVBox.BorderWidth = 5; targetVBox.Show(); innerEb.Add(targetVBox); innerEb.Show(); if (task.Notes != null) { foreach (var note in task.Notes) { NoteWidget noteWidget = new NoteWidget(note); noteWidget.TextChanged += OnNoteTextChanged; noteWidget.DeleteButtonClicked += OnDeleteButtonClicked; noteWidget.EditCanceled += OnEditCanceled; noteWidget.Show(); targetVBox.PackStart(noteWidget, false, false, 0); } } sw.AddWithViewport(innerEb); sw.Show(); VBox.PackStart(sw, true, true, 0); if (task.NoteSupport == NoteSupport.Multiple) { addButton = new Gtk.Button(Gtk.Stock.Add); addButton.Show(); this.ActionArea.PackStart(addButton); addButton.Clicked += OnAddButtonClicked; } AddButton(Gtk.Stock.Close, Gtk.ResponseType.Close); Response += delegate(object sender, Gtk.ResponseArgs args) { // Hide the window. The TaskWindow watches for when the // dialog is hidden and will take care of the rest. Hide(); }; }
private void BuildTable() { var swView = new Gtk.ScrolledWindow(); this.tvTable = new Gtk.TreeView(); this.tvTable.EnableSearch = false; this.ttTable = new GtkUtil.TableTextView( this.tvTable, Headers.Count, Headers.Count ); this.ttTable.Headers = Headers; this.tvTable.ButtonReleaseEvent += OnTableClick; this.tvTable.RowActivated += ( sender, evt ) => this.OnEdit(); this.lblEmptyExplanation = new Gtk.Label(){ UseMarkup = true }; swView.AddWithViewport( this.tvTable ); this.vbMain.PackStart( swView, true, true, 5 ); this.vbMain.PackStart( this.lblEmptyExplanation, false, false, 5 ); }