// Create a Button Box with the specified parameters private Frame CreateButtonBox(bool horizontal, string title, int spacing, ButtonBoxStyle layout) { Frame frame = new Frame(title); Gtk.ButtonBox bbox; if (horizontal) { bbox = new Gtk.HButtonBox(); } else { bbox = new Gtk.VButtonBox(); } bbox.BorderWidth = 5; frame.Add(bbox); // Set the appearance of the Button Box bbox.Layout = layout; bbox.Spacing = spacing; bbox.Add(new Button(Stock.Ok)); bbox.Add(new Button(Stock.Cancel)); bbox.Add(new Button(Stock.Help)); return(frame); }
// Create a Button Box with the specified parameters private Frame CreateButtonBox (bool horizontal, string title, int spacing, ButtonBoxStyle layout) { Frame frame = new Frame (title); Gtk.ButtonBox bbox ; if (horizontal) bbox = new Gtk.HButtonBox (); else bbox = new Gtk.VButtonBox (); bbox.BorderWidth = 5; frame.Add (bbox); // Set the appearance of the Button Box bbox.Layout = layout; bbox.Spacing = spacing; bbox.Add (new Button (Stock.Ok)); bbox.Add (new Button (Stock.Cancel)); bbox.Add (new Button (Stock.Help)); return frame; }