当前位置: 首页>>代码示例>>C#>>正文


C# Gtk.Alignment.Add方法代码示例

本文整理汇总了C#中Gtk.Alignment.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Gtk.Alignment.Add方法的具体用法?C# Gtk.Alignment.Add怎么用?C# Gtk.Alignment.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gtk.Alignment的用法示例。


在下文中一共展示了Gtk.Alignment.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddLabel

		void AddLabel ()
		{
			if (label == null) {
				Gtk.Alignment al = new Gtk.Alignment (0.5f, 0.5f, 1f, 1f);
				al.SetPadding (6, 6, 6, 6);
				label = new Gtk.Label ();
				al.Add (label);
				ContentBox.Add (al);
				al.ShowAll ();
			}
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:11,代码来源:TooltipPopoverWindow.cs

示例2: MultipleObjectViewer

 protected MultipleObjectViewer(IBroadcaster hub, string caption)
     : base(false, 0)
 {
     _hub = hub;
     // --- first line: caption and buttons
     Gtk.HBox hbxFirstLine = new Gtk.HBox(false, 2);
     // Caption label
     Gtk.Alignment labelAlign = new Gtk.Alignment(0F, 0F, 1F, 1F);
     labelAlign.Add(new Gtk.Label(caption));
     hbxFirstLine.PackStart(labelAlign, false, false, 0);
     hbxFirstLine.PackStart(new Gtk.Label(String.Empty), true, true, 0);
     // "Add" button
     Gtk.Image image = new Gtk.Image();
     image.Stock = Gtk.Stock.Add;
     _btnAdd = new Gtk.Button();
     _btnAdd.Add(image);
     _btnAdd.Relief = Gtk.ReliefStyle.None;
     _btnAdd.Clicked += new EventHandler(OnAddButtonClicked);
     _btnAdd.Sensitive = false;
     hbxFirstLine.PackStart(_btnAdd, false, false, 0);
     // "Edit" button
     image = new Gtk.Image();
     image.Stock = Gtk.Stock.JumpTo;
     _btnEdit = new Gtk.Button();
     _btnEdit.Add(image);
     _btnEdit.Relief = Gtk.ReliefStyle.None;
     _btnEdit.Clicked += new EventHandler(OnEditButtonClicked);
     _btnEdit.Sensitive = false;
     hbxFirstLine.PackStart(_btnEdit, false, false, 0);
     // "Delete" button
     image = new Gtk.Image();
     image.Stock = Gtk.Stock.Remove;
     _btnDelete = new Gtk.Button();
     _btnDelete.Add(image);
     _btnDelete.Relief = Gtk.ReliefStyle.None;
     _btnDelete.Clicked += new EventHandler(OnDeleteButtonClicked);
     _btnDelete.Sensitive = false;
     hbxFirstLine.PackStart(_btnDelete, false, false, 0);
     base.PackStart(hbxFirstLine, false, false, 0);
     // --- second line: element list
     _store = new Gtk.TreeStore(typeof(string));
     _tvList = new Gtk.TreeView();
     _tvList.HeadersVisible = false;
     _tvList.AppendColumn("", new Gtk.CellRendererText(), "text", 0);
     _tvList.Model = _store;
     _tvList.FocusInEvent += new Gtk.FocusInEventHandler(EnableButtons);
     _tvList.ButtonPressEvent += new Gtk.ButtonPressEventHandler(ListClickedHandler);
     Gtk.ScrolledWindow sw = new Gtk.ScrolledWindow();
     sw.ShadowType = Gtk.ShadowType.In;
     sw.Add(_tvList);
     base.PackStart(sw, true, true, 0);
     sw.Show();
 }
开发者ID:MonoBrasil,项目名称:historico,代码行数:53,代码来源:MultipleObjectViewer.cs

示例3: MakeImageButton

		public static Gtk.Button MakeImageButton (Gtk.Image image, string label)
		{
			Gtk.HBox box = new Gtk.HBox (false, 2);
			box.PackStart (image, false, false, 0);
			box.PackEnd (new Gtk.Label (label), false, false, 0);
			box.ShowAll ();

			Gtk.Button button = new Gtk.Button ();

			Gtk.Alignment align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f);
			align.Add (box);
			align.Show ();

			button.Add (align);
			return button;
		}			
开发者ID:ArsenShnurkov,项目名称:beagle-1,代码行数:16,代码来源:GtkUtils.cs

示例4: ToolbarComboBox

		public ToolbarComboBox () 
		{
			align = new Gtk.Alignment (0.5f, 0.5f, 1.0f, 0f);
			Add (align);
			
			align.LeftPadding = 3;
			align.RightPadding = 3;
			
			combo = new Gtk.ComboBox ();
			combo.Model = new Gtk.ListStore (typeof(string));
			ctx = new Gtk.CellRendererText ();
			combo.PackStart (ctx, true);
			combo.AddAttribute (ctx, "text", 0);
			
			align.Add (combo);
			ShowAll ();
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:17,代码来源:ToolbarComboBox.cs

示例5: WelcomePageTipOfTheDaySection

		public WelcomePageTipOfTheDaySection (): base (GettextCatalog.GetString ("Did you know?"))
		{
			XmlDocument xmlDocument = new XmlDocument ();
			xmlDocument.Load (System.IO.Path.Combine (System.IO.Path.Combine (PropertyService.DataPath, "options"), "TipsOfTheDay.xml"));

			foreach (XmlNode xmlNode in xmlDocument.DocumentElement.ChildNodes) {
				tips.Add (StringParserService.Parse (xmlNode.InnerText));
			}
			
			if (tips.Count != 0)  
				currentTip = new Random ().Next () % tips.Count;
			else
				currentTip = -1;

			Gtk.VBox box = new Gtk.VBox (false, 12);

			label = new Gtk.Label ();
			label.Xalign = 0;
			label.Wrap = true;
			label.WidthRequest = 200;
			label.ModifyFont (FontService.SansFont.CopyModified (Gui.Styles.FontScale11));
			label.SetPadding (0, 10);

			label.Text = currentTip != -1 ? tips[currentTip] : "";
			box.PackStart (label, true, true, 0);

			var next = new Gtk.Button (GettextCatalog.GetString ("Next Tip"));
			next.Relief = Gtk.ReliefStyle.Normal;
			next.Clicked += delegate {
				if (tips.Count == 0)
					return;
				currentTip = currentTip + 1;
				if (currentTip >= tips.Count)
					currentTip = 0;
				label.Text = tips[currentTip];
			};

			var al = new Gtk.Alignment (0, 0, 0, 0);
			al.Add (next);
			box.PackStart (al, false, false, 0);
			SetContent (box);
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:42,代码来源:WelcomePageTipOfTheDaySection.cs

示例6: Header

        public Header(string text)
            : base()
        {
            base.SetSizeRequest (-1, 30);

            Gtk.Alignment alignment = new Gtk.Alignment (0, 0, 1, 1);
            alignment.TopPadding = 1;
            alignment.LeftPadding = 5;
            alignment.RightPadding = 0;
            alignment.BottomPadding = 1;
            base.Add (alignment);

            //Select ();

            Gtk.HBox box = new Gtk.HBox ();
            alignment.Add (box);

            label = new Gtk.Label ();
            label.Ypad = 3;
            //	label.Xpad = 3;
            //base.Add (label);
            box.PackStart (label, true, true, 0);
            label.SetAlignment (0f, 0.5f);
            label.Justify = Gtk.Justification.Left;

            label.Markup = "<b>" + text + "</b>";

            closeButton = new Gtk.Button ();
            closeButton.Add (new Gtk.Image ("gtk-close", Gtk.IconSize.Menu));
            closeButton.Relief = Gtk.ReliefStyle.None;
            box.PackEnd (closeButton, false, false, 0);
            closeButton.ShowAll ();

            label.Show ();
            box.Show ();
            alignment.Show ();

            closeButton.Clicked += closeButton_Clicked;
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:39,代码来源:Header.cs

示例7: Build

 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "administrator.EditCreateUser")) {
         Gtk.Window cobj = ((Gtk.Window)(obj));
         // Widget administrator.EditCreateUser
         cobj.Title = "EditCreateUser";
         cobj.WindowPosition = ((Gtk.WindowPosition)(4));
         cobj.Events = ((Gdk.EventMask)(0));
         cobj.Name = "administrator.EditCreateUser";
         cobj.DefaultWidth = 400;
         cobj.DefaultHeight = 300;
         bindings["administrator.EditCreateUser"] = cobj;
         cobj.Show();
     }
     else {
         if ((id == "administrator.LoginWindow")) {
             Gtk.Window cobj = ((Gtk.Window)(obj));
             // Widget administrator.LoginWindow
             cobj.Title = "Boxerp Server Administrator";
             cobj.WindowPosition = ((Gtk.WindowPosition)(1));
             cobj.Modal = true;
             cobj.Resizable = false;
             cobj.AllowGrow = false;
             cobj.Events = ((Gdk.EventMask)(0));
             cobj.Name = "administrator.LoginWindow";
             // Container child administrator.LoginWindow.Gtk.Container+ContainerChild
             Gtk.VBox w1 = new Gtk.VBox();
             w1.BorderWidth = ((uint)(5));
             w1.Events = ((Gdk.EventMask)(0));
             w1.Name = "vbox1";
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w2 = new Gtk.HBox();
             w2.Events = ((Gdk.EventMask)(0));
             w2.Name = "hbox1";
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Label w3 = new Gtk.Label();
             w3.LabelProp = "Login:";
             w3.Events = ((Gdk.EventMask)(0));
             w3.Name = "label1";
             w3.WidthRequest = 150;
             bindings["label1"] = w3;
             w2.Add(w3);
             Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3]));
             w4.Position = 0;
             // Container child hbox1.Gtk.Box+BoxChild
             Gtk.Entry w5 = new Gtk.Entry();
             w5.Text = "demo";
             w5.IsEditable = true;
             w5.MaxLength = 100;
             w5.InvisibleChar = '●';
             w5.CanFocus = true;
             w5.Events = ((Gdk.EventMask)(0));
             w5.Name = "entryLogin";
             w5.WidthRequest = 200;
             bindings["entryLogin"] = w5;
             w2.Add(w5);
             Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5]));
             w6.Position = 1;
             w6.Expand = false;
             w6.Fill = false;
             bindings["hbox1"] = w2;
             w1.Add(w2);
             Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2]));
             w7.Position = 0;
             w7.Expand = false;
             w7.Fill = false;
             // Container child vbox1.Gtk.Box+BoxChild
             Gtk.HBox w8 = new Gtk.HBox();
             w8.Events = ((Gdk.EventMask)(0));
             w8.Name = "hbox2";
             w8.WidthRequest = 150;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Label w9 = new Gtk.Label();
             w9.LabelProp = "Password:";
             w9.Events = ((Gdk.EventMask)(0));
             w9.Name = "label2";
             bindings["label2"] = w9;
             w8.Add(w9);
             Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w8[w9]));
             w10.Position = 0;
             w10.Fill = false;
             // Container child hbox2.Gtk.Box+BoxChild
             Gtk.Entry w11 = new Gtk.Entry();
             w11.Text = "pass";
             w11.IsEditable = true;
             w11.Visibility = false;
             w11.InvisibleChar = '●';
             w11.CanFocus = true;
             w11.Events = ((Gdk.EventMask)(0));
             w11.Name = "entryPassword";
             w11.WidthRequest = 200;
             bindings["entryPassword"] = w11;
             w8.Add(w11);
             Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w8[w11]));
             w12.Position = 1;
             w12.Expand = false;
             w12.Fill = false;
             bindings["hbox2"] = w8;
             w1.Add(w8);
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:boxerp-svn,代码行数:101,代码来源:generated.cs

示例8: BuildWidget

        private void BuildWidget()
        {
            alignment = new Gtk.Alignment (0.5f, 0.5f, 1f, 0f);
            alignment.SetPadding (1, 1, 3, 3);
            VisibleWindow = false;

            box = new Gtk.HBox ();
            entry = new FramelessEntry (this);
            filter_button = new HoverImageButton (searchImage);
            clear_button = new HoverImageButton (clearImage);

            entryAlignment = new Gtk.Alignment (0.5f, 0.5f, 1f, 1f);
            alignment.SetPadding (0, 0, 3, 3);
            entryAlignment.Add (entry);
            box.PackStart (filter_button, false, false, 0);
            box.PackStart (entryAlignment, true, true, 0);
            box.PackStart (clear_button, false, false, 0);
            alignment.Add (box);
            Add (alignment);
            alignment.ShowAll ();

            entry.StyleSet += OnInnerEntryStyleSet;
            entry.StateChanged += OnInnerEntryStateChanged;
            entry.FocusInEvent += OnInnerEntryFocusEvent;
            entry.FocusOutEvent += OnInnerEntryFocusEvent;
            entry.Changed += OnInnerEntryChanged;
            entry.Activated += delegate {
                NotifyActivated ();
            };

            filter_button.CanFocus = false;
            clear_button.CanFocus = false;

            filter_button.ButtonReleaseEvent += OnButtonReleaseEvent;
            clear_button.ButtonReleaseEvent += OnButtonReleaseEvent;
            clear_button.Clicked += OnClearButtonClicked;

            ShowHideButtons ();
        }
开发者ID:RandallFlagg,项目名称:xwt,代码行数:39,代码来源:SearchTextEntryBackend.cs

示例9: SetFrameType

        public void SetFrameType(FrameType type)
        {
            Frame f = (Frame) Frontend;

            switch (type) {
            case FrameType.Custom:
                if (!(Widget is HeaderBox)) {
                    HeaderBox box = new HeaderBox ();
                    box.Show ();
                    box.BackgroundColor = UsingCustomBackgroundColor ? (Color?)BackgroundColor : null;
                    #pragma warning disable 618
                    box.SetMargins ((int)f.BorderWidthTop, (int)f.BorderWidthBottom, (int)f.BorderWidthLeft, (int)f.BorderWidthRight);
                    #pragma warning restore 618
                    box.SetPadding ((int)f.Padding.Top, (int)f.Padding.Bottom, (int)f.Padding.Left, (int)f.Padding.Right);
                    if (borderColor != null)
                        box.SetBorderColor (borderColor.Value);
                    var c = paddingAlign != null ? paddingAlign.Child : Widget.Child;
                    if (c != null) {
                        ((Gtk.Container)c.Parent).Remove (c);
                        box.Add (c);
                    }
                    Widget = box;
                    if (paddingAlign != null) {
                        paddingAlign.Destroy ();
                        paddingAlign = null;
                    }
                }
                break;
            case FrameType.WidgetBox:
                if (!(Widget is Gtk.Frame)) {
                    var c = Widget.Child;
                    if (c != null)
                        Widget.Remove (c);
                    Gtk.Frame gf = new Gtk.Frame ();
                    if (!string.IsNullOrEmpty (label))
                        gf.Label = label;
                    if (f.Padding.HorizontalSpacing != 0 || f.Padding.VerticalSpacing != 0) {
                        paddingAlign = new Gtk.Alignment (0, 0, 1, 1);
                        paddingAlign.Show ();
                        UreatePaddingAlign (f.Padding.Top, f.Padding.Bottom, f.Padding.Left, f.Padding.Right);
                        if (c != null)
                            paddingAlign.Add (c);
                        gf.Add (paddingAlign);
                    } else {
                        if (c != null)
                            gf.Add (c);
                    }
                    gf.Show ();
                    Widget = gf;
                }
                break;
            }
        }
开发者ID:antmicro,项目名称:xwt,代码行数:53,代码来源:FrameBackend.cs

示例10: Build

 public static void Build(object obj, string id)
 {
     System.Collections.Hashtable bindings = new System.Collections.Hashtable();
     if ((id == "SharpTranslator.ReversibleCombos")) {
         Gtk.Bin cobj = ((Gtk.Bin)(obj));
         // Widget SharpTranslator.ReversibleCombos
         BinContainer.Attach(cobj);
         cobj.Events = ((Gdk.EventMask)(256));
         cobj.Name = "SharpTranslator.ReversibleCombos";
         // Container child SharpTranslator.ReversibleCombos.Gtk.Container+ContainerChild
         Gtk.HBox w1 = new Gtk.HBox();
         w1.Spacing = 5;
         w1.BorderWidth = ((uint)(5));
         w1.Events = ((Gdk.EventMask)(0));
         w1.Name = "hbox1";
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w2 = new Gtk.Label();
         w2.LabelProp = "Source:";
         w2.Events = ((Gdk.EventMask)(0));
         w2.Name = "labelSource";
         bindings["labelSource"] = w2;
         w1.Add(w2);
         Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2]));
         w3.Position = 0;
         w3.Expand = false;
         w3.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w4 = Gtk.ComboBox.NewText();
         w4.Events = ((Gdk.EventMask)(0));
         w4.Name = "comboSource";
         bindings["comboSource"] = w4;
         w1.Add(w4);
         Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4]));
         w5.Position = 1;
         w5.Expand = false;
         w5.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w6 = new Gtk.VSeparator();
         w6.Events = ((Gdk.EventMask)(0));
         w6.Name = "vseparator1";
         bindings["vseparator1"] = w6;
         w1.Add(w6);
         Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w6]));
         w7.Position = 2;
         w7.Expand = false;
         w7.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.CheckButton w8 = new Gtk.CheckButton();
         w8.Label = "reverse";
         w8.DrawIndicator = true;
         w8.BorderWidth = ((uint)(5));
         w8.CanFocus = true;
         w8.Events = ((Gdk.EventMask)(0));
         w8.Name = "checkbuttonReverse";
         bindings["checkbuttonReverse"] = w8;
         w1.Add(w8);
         Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w8]));
         w9.Position = 3;
         w9.Expand = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.VSeparator w10 = new Gtk.VSeparator();
         w10.Events = ((Gdk.EventMask)(0));
         w10.Name = "vseparator2";
         bindings["vseparator2"] = w10;
         w1.Add(w10);
         Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(w1[w10]));
         w11.Position = 4;
         w11.Expand = false;
         w11.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.Label w12 = new Gtk.Label();
         w12.LabelProp = "Target:";
         w12.Events = ((Gdk.EventMask)(0));
         w12.Name = "labelTarget";
         bindings["labelTarget"] = w12;
         w1.Add(w12);
         Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(w1[w12]));
         w13.Position = 5;
         w13.Expand = false;
         w13.Fill = false;
         // Container child hbox1.Gtk.Box+BoxChild
         Gtk.ComboBox w14 = Gtk.ComboBox.NewText();
         w14.Events = ((Gdk.EventMask)(0));
         w14.Name = "comboTarget";
         bindings["comboTarget"] = w14;
         w1.Add(w14);
         Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(w1[w14]));
         w15.Position = 6;
         w15.Expand = false;
         w15.Fill = false;
         bindings["hbox1"] = w1;
         cobj.Add(w1);
         bindings["SharpTranslator.ReversibleCombos"] = cobj;
         w2.Show();
         w4.Show();
         w6.Show();
         w8.Show();
         w10.Show();
         w12.Show();
         w14.Show();
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:sharptranslator-svn,代码行数:101,代码来源:generated.cs

示例11: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget SimpleDownloader.MainWindow
     this.Name = "SimpleDownloader.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Simple Downloader");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child SimpleDownloader.MainWindow.Gtk.Container+ContainerChild
     this.vbox4 = new Gtk.VBox();
     this.vbox4.Name = "vbox4";
     this.vbox4.Spacing = 6;
     // Container child vbox4.Gtk.Box+BoxChild
     this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false);
     this.table2.RowSpacing = ((uint)(6));
     this.table2.ColumnSpacing = ((uint)(6));
     // Container child table2.Gtk.Table+TableChild
     this.downloadPath = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Datei auswählen"), ((Gtk.FileChooserAction)(0)));
     this.downloadPath.Name = "downloadPath";
     this.table2.Add(this.downloadPath);
     Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table2[this.downloadPath]));
     w1.TopAttach = ((uint)(1));
     w1.BottomAttach = ((uint)(2));
     w1.LeftAttach = ((uint)(1));
     w1.RightAttach = ((uint)(2));
     w1.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.downloadUrl = new Gtk.Entry();
     this.downloadUrl.CanFocus = true;
     this.downloadUrl.Name = "downloadUrl";
     this.downloadUrl.IsEditable = true;
     this.downloadUrl.InvisibleChar = '●';
     this.table2.Add(this.downloadUrl);
     Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.downloadUrl]));
     w2.LeftAttach = ((uint)(1));
     w2.RightAttach = ((uint)(2));
     w2.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label5 = new Gtk.Label();
     this.label5.Name = "label5";
     this.label5.LabelProp = Mono.Unix.Catalog.GetString("Download URL:");
     this.table2.Add(this.label5);
     Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2[this.label5]));
     w3.XOptions = ((Gtk.AttachOptions)(4));
     w3.YOptions = ((Gtk.AttachOptions)(4));
     // Container child table2.Gtk.Table+TableChild
     this.label6 = new Gtk.Label();
     this.label6.Name = "label6";
     this.label6.LabelProp = Mono.Unix.Catalog.GetString("Download Path:");
     this.table2.Add(this.label6);
     Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.label6]));
     w4.TopAttach = ((uint)(1));
     w4.BottomAttach = ((uint)(2));
     w4.XOptions = ((Gtk.AttachOptions)(4));
     w4.YOptions = ((Gtk.AttachOptions)(4));
     this.vbox4.Add(this.table2);
     Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox4[this.table2]));
     w5.Position = 0;
     w5.Expand = false;
     w5.Fill = false;
     // Container child vbox4.Gtk.Box+BoxChild
     this.hbox3 = new Gtk.HBox();
     this.hbox3.Name = "hbox3";
     this.hbox3.Spacing = 6;
     // Container child hbox3.Gtk.Box+BoxChild
     this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F);
     this.alignment1.Name = "alignment1";
     this.hbox3.Add(this.alignment1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.alignment1]));
     w6.Position = 0;
     // Container child hbox3.Gtk.Box+BoxChild
     this.stopButton = new Gtk.Button();
     this.stopButton.CanFocus = true;
     this.stopButton.Name = "stopButton";
     this.stopButton.UseUnderline = true;
     this.stopButton.Label = Mono.Unix.Catalog.GetString("Stop");
     this.hbox3.Add(this.stopButton);
     Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.stopButton]));
     w7.Position = 1;
     w7.Expand = false;
     w7.Fill = false;
     // Container child hbox3.Gtk.Box+BoxChild
     this.downloadButton = new Gtk.Button();
     this.downloadButton.CanFocus = true;
     this.downloadButton.Name = "downloadButton";
     this.downloadButton.UseUnderline = true;
     // Container child downloadButton.Gtk.Container+ContainerChild
     Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w9 = new Gtk.HBox();
     w9.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w10 = new Gtk.Image();
     w10.Pixbuf = Stetic.IconLoader.LoadIcon(this, "down", Gtk.IconSize.Menu, 16);
     w9.Add(w10);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w12 = new Gtk.Label();
     w12.LabelProp = Mono.Unix.Catalog.GetString("Download");
     w12.UseUnderline = true;
     w9.Add(w12);
     w8.Add(w9);
//.........这里部分代码省略.........
开发者ID:passy,项目名称:simpledownloader,代码行数:101,代码来源:SimpleDownloader.MainWindow.cs

示例12: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget HollyLibrary.ColorPickerDialog
     this.Name = "HollyLibrary.ColorPickerDialog";
     this.Title = "ColorPickerDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.Resizable = false;
     this.AllowGrow = false;
     this.Decorated = false;
     this.DestroyWithParent = true;
     this.SkipPagerHint = true;
     this.SkipTaskbarHint = true;
     // Container child HollyLibrary.ColorPickerDialog.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     this.vbox1.BorderWidth = ((uint)(5));
     // Container child vbox1.Gtk.Box+BoxChild
     this.TblColors = new Gtk.Table(((uint)(5)), ((uint)(8)), true);
     this.TblColors.Name = "TblColors";
     this.TblColors.RowSpacing = ((uint)(1));
     this.TblColors.ColumnSpacing = ((uint)(1));
     this.vbox1.Add(this.TblColors);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.TblColors]));
     w1.Position = 0;
     // Container child vbox1.Gtk.Box+BoxChild
     this.BtnMoreColors = new Gtk.Button();
     this.BtnMoreColors.CanFocus = true;
     this.BtnMoreColors.Name = "BtnMoreColors";
     this.BtnMoreColors.UseUnderline = true;
     // Container child BtnMoreColors.Gtk.Container+ContainerChild
     Gtk.Alignment w2 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w3 = new Gtk.HBox();
     w3.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w4 = new Gtk.Image();
     w4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-color-picker", Gtk.IconSize.Menu, 16);
     w3.Add(w4);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w6 = new Gtk.Label();
     w6.LabelProp = "More";
     w6.UseUnderline = true;
     w3.Add(w6);
     w2.Add(w3);
     this.BtnMoreColors.Add(w2);
     this.vbox1.Add(this.BtnMoreColors);
     Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.BtnMoreColors]));
     w10.Position = 1;
     w10.Expand = false;
     w10.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 230;
     this.DefaultHeight = 160;
     this.Show();
     this.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent);
     this.BtnMoreColors.Clicked += new System.EventHandler(this.OnBtnMoreColorsClicked);
 }
开发者ID:tizianomanni,项目名称:holly-gtk-widgets,代码行数:62,代码来源:HollyLibrary.ColorPickerDialog.cs

示例13: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget Pinta.Gui.Widgets.AnglePickerWidget
     Stetic.BinContainer.Attach(this);
     this.Name = "Pinta.Gui.Widgets.AnglePickerWidget";
     // Container child Pinta.Gui.Widgets.AnglePickerWidget.Gtk.Container+ContainerChild
     this.vbox = new Gtk.VBox();
     this.vbox.Name = "vbox";
     this.vbox.Spacing = 6;
     // Container child vbox.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 6;
     // Container child hbox1.Gtk.Box+BoxChild
     this.label = new Gtk.Label();
     this.label.Name = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.hbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.hseparator = new Gtk.HSeparator();
     this.hseparator.Name = "hseparator";
     this.hbox1.Add(this.hseparator);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.hseparator]));
     w2.Position = 1;
     this.vbox.Add(this.hbox1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox1]));
     w3.Position = 0;
     w3.Expand = false;
     w3.Fill = false;
     // Container child vbox.Gtk.Box+BoxChild
     this.hbox2 = new Gtk.HBox();
     this.hbox2.Name = "hbox2";
     this.hbox2.Spacing = 6;
     // Container child hbox2.Gtk.Box+BoxChild
     this.anglepickergraphic1 = new Pinta.Gui.Widgets.AnglePickerGraphic();
     this.anglepickergraphic1.Name = "anglepickergraphic1";
     this.anglepickergraphic1.Value = 0;
     this.anglepickergraphic1.ValueDouble = 0;
     this.hbox2.Add(this.anglepickergraphic1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.anglepickergraphic1]));
     w4.Position = 0;
     w4.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.alignment1 = new Gtk.Alignment(0.5F, 0F, 1F, 0F);
     this.alignment1.Name = "alignment1";
     // Container child alignment1.Gtk.Container+ContainerChild
     this.spin = new Gtk.SpinButton(0, 360, 1);
     this.spin.CanFocus = true;
     this.spin.Name = "spin";
     this.spin.Adjustment.PageIncrement = 10;
     this.spin.ClimbRate = 1;
     this.spin.Numeric = true;
     this.alignment1.Add(this.spin);
     this.hbox2.Add(this.alignment1);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.alignment1]));
     w6.Position = 1;
     w6.Expand = false;
     w6.Fill = false;
     // Container child hbox2.Gtk.Box+BoxChild
     this.alignment2 = new Gtk.Alignment(0.5F, 0F, 1F, 0.1F);
     this.alignment2.Name = "alignment2";
     // Container child alignment2.Gtk.Container+ContainerChild
     this.button = new Gtk.Button();
     this.button.WidthRequest = 28;
     this.button.HeightRequest = 24;
     this.button.CanFocus = true;
     this.button.Name = "button";
     this.button.UseUnderline = true;
     // Container child button.Gtk.Container+ContainerChild
     Gtk.Alignment w7 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment.Gtk.Container+ContainerChild
     Gtk.HBox w8 = new Gtk.HBox();
     w8.Spacing = 2;
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Image w9 = new Gtk.Image();
     w9.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-go-back", Gtk.IconSize.Menu, 16);
     w8.Add(w9);
     // Container child GtkHBox.Gtk.Container+ContainerChild
     Gtk.Label w11 = new Gtk.Label();
     w8.Add(w11);
     w7.Add(w8);
     this.button.Add(w7);
     this.alignment2.Add(this.button);
     this.hbox2.Add(this.alignment2);
     Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.alignment2]));
     w16.Position = 2;
     w16.Expand = false;
     w16.Fill = false;
     this.vbox.Add(this.hbox2);
     Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox2]));
     w17.Position = 1;
     w17.Expand = false;
     w17.Fill = false;
     this.Add(this.vbox);
     if ((this.Child != null)) {
//.........这里部分代码省略.........
开发者ID:xxgreg,项目名称:Pinta,代码行数:101,代码来源:Pinta.Gui.Widgets.AnglePickerWidget.cs

示例14: Build

 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Gedcom.UI.GTK.DeleteIndividualDialog
     this.Name = "Gedcom.UI.GTK.DeleteIndividualDialog";
     this.Title = "";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.BorderWidth = ((uint)(6));
     this.HasSeparator = false;
     // Internal child Gedcom.UI.GTK.DeleteIndividualDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.Spacing = 12;
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.hbox1 = new Gtk.HBox();
     this.hbox1.Name = "hbox1";
     this.hbox1.Spacing = 12;
     this.hbox1.BorderWidth = ((uint)(6));
     // Container child hbox1.Gtk.Box+BoxChild
     this.image126 = new Gtk.Image();
     this.image126.Name = "image126";
     this.image126.Yalign = 0F;
     this.image126.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48);
     this.hbox1.Add(this.image126);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image126]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbox1.Gtk.Box+BoxChild
     this.AlertTextLabel = new Gtk.Label();
     this.AlertTextLabel.Name = "AlertTextLabel";
     this.AlertTextLabel.Xalign = 0F;
     this.AlertTextLabel.Yalign = 0F;
     this.AlertTextLabel.LabelProp = Mono.Unix.Catalog.GetString("<span weight=\"bold\" size=\"larger\">Really delete {0} from your database?</span>\n\nDeleting {0} will remove the person, and potentially any family groups that will be left without a single spouse or any children.  Any media items, sources, notes etc. specific to this individual will also be removed.");
     this.AlertTextLabel.UseMarkup = true;
     this.AlertTextLabel.Wrap = true;
     this.AlertTextLabel.Selectable = true;
     this.hbox1.Add(this.AlertTextLabel);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.AlertTextLabel]));
     w3.Position = 1;
     w1.Add(this.hbox1);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
     w4.Position = 0;
     w4.Expand = false;
     w4.Fill = false;
     // Internal child Gedcom.UI.GTK.DeleteIndividualDialog.ActionArea
     Gtk.HButtonBox w5 = this.ActionArea;
     w5.Name = "dialog1_ActionArea";
     w5.Spacing = 6;
     w5.BorderWidth = ((uint)(5));
     w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonCancel = new Gtk.Button();
     this.buttonCancel.CanDefault = true;
     this.buttonCancel.CanFocus = true;
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.UseStock = true;
     this.buttonCancel.UseUnderline = true;
     this.buttonCancel.Label = "gtk-cancel";
     this.AddActionWidget(this.buttonCancel, -6);
     Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel]));
     w6.Expand = false;
     w6.Fill = false;
     // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
     this.buttonOk = new Gtk.Button();
     this.buttonOk.CanDefault = true;
     this.buttonOk.CanFocus = true;
     this.buttonOk.Name = "buttonOk";
     this.buttonOk.UseUnderline = true;
     // Container child buttonOk.Gtk.Container+ContainerChild
     Gtk.Alignment w7 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F);
     // Container child GtkAlignment1.Gtk.Container+ContainerChild
     Gtk.HBox w8 = new Gtk.HBox();
     w8.Spacing = 2;
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Image w9 = new Gtk.Image();
     w9.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-delete", Gtk.IconSize.Button, 20);
     w8.Add(w9);
     // Container child GtkHBox1.Gtk.Container+ContainerChild
     Gtk.Label w11 = new Gtk.Label();
     w11.LabelProp = Mono.Unix.Catalog.GetString("Delete the individual");
     w11.UseUnderline = true;
     w8.Add(w11);
     w7.Add(w8);
     this.buttonOk.Add(w7);
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w15 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk]));
     w15.Position = 1;
     w15.Expand = false;
     w15.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 505;
     this.DefaultHeight = 216;
     this.buttonCancel.HasDefault = true;
     this.Show();
 }
开发者ID:Bert6623,项目名称:Gedcom.Net,代码行数:98,代码来源:Gedcom.UI.GTK.DeleteIndividualDialog.cs

示例15: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null);
     this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File");
     w1.Add(this.FileAction, null);
     this.jumpToAction = new Gtk.Action("jumpToAction", Mono.Unix.Catalog.GetString("Restart"), null, "gtk-jump-to");
     this.jumpToAction.ShortLabel = Mono.Unix.Catalog.GetString("Restart");
     w1.Add(this.jumpToAction, null);
     this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit");
     this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit");
     w1.Add(this.quitAction, null);
     this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("Help"), null, "none");
     this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("About...");
     w1.Add(this.HelpAction, null);
     this.saveAction = new Gtk.Action("saveAction", Mono.Unix.Catalog.GetString("Take snapshot"), null, "gtk-save");
     this.saveAction.ShortLabel = Mono.Unix.Catalog.GetString("Take snapshot");
     w1.Add(this.saveAction, null);
     this.helpAction = new Gtk.Action("helpAction", Mono.Unix.Catalog.GetString("About..."), null, "gtk-help");
     this.helpAction.ShortLabel = Mono.Unix.Catalog.GetString("About...");
     w1.Add(this.helpAction, null);
     this.OptionsAction = new Gtk.Action("OptionsAction", Mono.Unix.Catalog.GetString("Options"), null, null);
     this.OptionsAction.ShortLabel = Mono.Unix.Catalog.GetString("Options");
     w1.Add(this.OptionsAction, null);
     this.GraphicsAction = new Gtk.Action("GraphicsAction", Mono.Unix.Catalog.GetString("Graphics"), null, null);
     this.GraphicsAction.ShortLabel = Mono.Unix.Catalog.GetString("Graphics");
     w1.Add(this.GraphicsAction, null);
     this.AnimationDelayAction = new Gtk.Action("AnimationDelayAction", Mono.Unix.Catalog.GetString("Animation Delay"), null, null);
     this.AnimationDelayAction.ShortLabel = Mono.Unix.Catalog.GetString("Animation Delay");
     w1.Add(this.AnimationDelayAction, null);
     this.mediaPlayAction = new Gtk.Action("mediaPlayAction", Mono.Unix.Catalog.GetString("Frame Delay"), null, "gtk-media-play");
     this.mediaPlayAction.ShortLabel = Mono.Unix.Catalog.GetString("Frame Delay");
     w1.Add(this.mediaPlayAction, null);
     this.d500MsAction = new Gtk.RadioAction("d500MsAction", Mono.Unix.Catalog.GetString("500 ms"), null, null, 0);
     this.d500MsAction.Group = new GLib.SList(System.IntPtr.Zero);
     this.d500MsAction.ShortLabel = Mono.Unix.Catalog.GetString("500 ms");
     w1.Add(this.d500MsAction, null);
     this.d1000MsAction = new Gtk.RadioAction("d1000MsAction", Mono.Unix.Catalog.GetString("1000 ms"), null, null, 0);
     this.d1000MsAction.Group = this.d500MsAction.Group;
     this.d1000MsAction.ShortLabel = Mono.Unix.Catalog.GetString("1000 ms");
     w1.Add(this.d1000MsAction, null);
     this.d250MsAction = new Gtk.RadioAction("d250MsAction", Mono.Unix.Catalog.GetString("250 ms"), null, null, 0);
     this.d250MsAction.Group = this.d500MsAction.Group;
     this.d250MsAction.ShortLabel = Mono.Unix.Catalog.GetString("250 ms");
     w1.Add(this.d250MsAction, null);
     this.d100MsAction = new Gtk.RadioAction("d100MsAction", Mono.Unix.Catalog.GetString("100 ms"), null, null, 0);
     this.d100MsAction.Group = this.d500MsAction.Group;
     this.d100MsAction.ShortLabel = Mono.Unix.Catalog.GetString("100 ms");
     w1.Add(this.d100MsAction, null);
     this.DrawGridAction = new Gtk.ToggleAction("DrawGridAction", Mono.Unix.Catalog.GetString("Draw Grid"), null, null);
     this.DrawGridAction.ShortLabel = Mono.Unix.Catalog.GetString("Draw Grid");
     w1.Add(this.DrawGridAction, null);
     this.ANSIOnlyAction = new Gtk.ToggleAction("ANSIOnlyAction", Mono.Unix.Catalog.GetString("ANSI Only"), null, null);
     this.ANSIOnlyAction.Active = true;
     this.ANSIOnlyAction.ShortLabel = Mono.Unix.Catalog.GetString("ANSI Only");
     w1.Add(this.ANSIOnlyAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("GVisHuff - Adaptive Huffman Animator");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.MainLayout = new Gtk.VBox();
     this.MainLayout.Name = "MainLayout";
     this.MainLayout.Spacing = 6;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='MainMenu'><menu name='FileAction' action='FileAction'><menuitem name='jumpToAction' action='jumpToAction'/><menuitem name='saveAction' action='saveAction'/><separator/><menuitem name='quitAction' action='quitAction'/></menu><menu name='OptionsAction' action='OptionsAction'><menu name='mediaPlayAction' action='mediaPlayAction'><menuitem name='d100MsAction' action='d100MsAction'/><menuitem name='d250MsAction' action='d250MsAction'/><menuitem name='d500MsAction' action='d500MsAction'/><menuitem name='d1000MsAction' action='d1000MsAction'/></menu><menuitem name='DrawGridAction' action='DrawGridAction'/><menuitem name='ANSIOnlyAction' action='ANSIOnlyAction'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='helpAction' action='helpAction'/></menu></menubar></ui>");
     this.MainMenu = ((Gtk.MenuBar)(this.UIManager.GetWidget("/MainMenu")));
     this.MainMenu.Name = "MainMenu";
     this.MainLayout.Add(this.MainMenu);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.MainLayout[this.MainMenu]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child MainLayout.Gtk.Box+BoxChild
     this.SenderHBox = new Gtk.HBox();
     this.SenderHBox.Name = "SenderHBox";
     this.SenderHBox.Homogeneous = true;
     this.SenderHBox.Spacing = 6;
     // Container child SenderHBox.Gtk.Box+BoxChild
     this.SenderVBox = new Gtk.VBox();
     this.SenderVBox.Name = "SenderVBox";
     this.SenderVBox.Spacing = 6;
     // Container child SenderVBox.Gtk.Box+BoxChild
     this.MsgEncHBox = new Gtk.HBox();
     this.MsgEncHBox.Name = "MsgEncHBox";
     this.MsgEncHBox.Spacing = 6;
     // Container child MsgEncHBox.Gtk.Box+BoxChild
     this.SenderEntry = new Gtk.Entry();
     this.SenderEntry.CanFocus = true;
     this.SenderEntry.Name = "SenderEntry";
     this.SenderEntry.IsEditable = false;
     this.SenderEntry.InvisibleChar = '●';
     this.MsgEncHBox.Add(this.SenderEntry);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.MsgEncHBox[this.SenderEntry]));
     w3.Position = 0;
     // Container child MsgEncHBox.Gtk.Box+BoxChild
//.........这里部分代码省略.........
开发者ID:astarasikov,项目名称:HuffmanArchiver,代码行数:101,代码来源:MainWindow.cs


注:本文中的Gtk.Alignment.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。