• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Gtk.VBox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



Gtk.VBox类属于命名空间,在下文中一共展示了Gtk.VBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ScreenshotViewerController

        public ScreenshotViewerController(Glade.XML gxml, ScreenshotViewerModel ssViewerModel)
        {
            this.ssViewerModel = ssViewerModel;

            nextNoteButton = (Gtk.Button)gxml.GetWidget ("nextNoteButton");
            previousNoteButton = (Gtk.Button)gxml.GetWidget ("previousNoteButton");
            forwardHourButton = (Gtk.Button)gxml.GetWidget ("forwardHourButton");
            backHourButton = (Gtk.Button)gxml.GetWidget ("backHourButton");

            forward10MinButton = (Gtk.Button)gxml.GetWidget ("foward10MinButton");
            back10MinButton = (Gtk.Button)gxml.GetWidget ("back10MinButton");

            noteViewBox = (Gtk.VBox)gxml.GetWidget ("noteViewBox");

            screenshotImage = (Gtk.Image)gxml.GetWidget ("noteImage");

            nextNoteButton.Clicked += this.NextNoteButtonPressed;
            previousNoteButton.Clicked += this.PrevNoteButtonPressed;

            forwardHourButton.Clicked += this.ForwardHourButtonPressed;
            backHourButton.Clicked += this.BackHourButtonPressed;

            forward10MinButton.Clicked += this.Forward10MinButtonPressed;
            back10MinButton.Clicked += this.Back10MinButtonPressed;

            noteViewBox.ScrollEvent += this.NoteViewScroll;
            screenshotImage.ScrollEvent += this.NoteViewScroll;

            doUpdateTimeCheckFilters ();
        }
开发者ID:simon-g-crosby,项目名称:time-track-client,代码行数:30,代码来源:ScreenshotViewerController.cs


示例2: DisplayEntries

        private void DisplayEntries(IEnumerable<HistoryEntry> entries)
        {
            var entryBox = new Gtk.VBox ();
            entries.ToList ().ForEach (entryBox.Add);

            scrolledwindow1.AddWithViewport (entryBox);
        }
开发者ID:scheibenkaes,项目名称:DirectoryHistory,代码行数:7,代码来源:HistoryDialog.cs


示例3: Build

 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.RawXmlInfo
     Stetic.BinContainer.Attach(this);
     this.Name = "Mono.Upnp.GtkClient.RawXmlInfo";
     // Container child Mono.Upnp.GtkClient.RawXmlInfo.Gtk.Container+ContainerChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     // Container child scrolledwindow1.Gtk.Container+ContainerChild
     Gtk.Viewport w1 = new Gtk.Viewport();
     w1.ShadowType = ((Gtk.ShadowType)(0));
     // Container child GtkViewport.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.raw = new Gtk.TextView();
     this.raw.CanFocus = true;
     this.raw.Name = "raw";
     this.raw.Editable = false;
     this.vbox1.Add(this.raw);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.raw]));
     w2.Position = 0;
     w1.Add(this.vbox1);
     this.scrolledwindow1.Add(w1);
     this.Add(this.scrolledwindow1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
开发者ID:rsweeney21,项目名称:Mono.Upnp,代码行数:33,代码来源:Mono.Upnp.GtkClient.RawXmlInfo.cs


示例4: SetupUi

		protected void SetupUi()
		{
			var box = new Gtk.VBox();

			var menu = new Gtk.MenuBar();
			var fileMenu = new Gtk.Menu();
			var file = new Gtk.MenuItem("File");
			file.Submenu = fileMenu;
			menu.Append(file);

			var save = new Gtk.MenuItem("Save");
			save.Activated += OnSaveMenuActivated;
			var load = new Gtk.MenuItem("Load");
			load.Activated += OnLoadMenuActivated;

			var exit = new Gtk.MenuItem("Exit");
			exit.Activated += (sender, e) => Gtk.Application.Quit();

			fileMenu.Append(save);
			fileMenu.Append(load);
			fileMenu.Append(exit);


			box.PackStart(menu, false, false, 0);

			nb = new Gtk.Notebook();
			nb.ShowTabs = false;
			nb.AppendPage(SetupOverviewPage(), new Gtk.Label("Overview"));
			nb.AppendPage(SetupNewNotePage(), new Gtk.Label("New"));
			box.PackStart(nb, true, true, 2);

			Add(box);
		}
开发者ID:cgt,项目名称:Notes,代码行数:33,代码来源:MainWindow.cs


示例5: ActionGroupEditor

        public ActionGroupEditor()
        {
            changedEvent = new ObjectWrapperEventHandler (OnActionChanged);

            Gtk.Fixed fx = new Gtk.Fixed ();
            table = new Gtk.Table (0, 0, false);
            table.RowSpacing = 8;
            table.ColumnSpacing = 8;
            table.BorderWidth = 12;

            Gtk.EventBox ebox = new Gtk.EventBox ();
            ebox.ModifyBg (Gtk.StateType.Normal, this.Style.Backgrounds [0]);
            headerLabel = new EditableLabel ();
            headerLabel.MarkupTemplate = "<b>$TEXT</b>";
            headerLabel.Changed += OnGroupNameChanged;
            Gtk.VBox vbox = new Gtk.VBox ();
            Gtk.Label grpLabel = new Gtk.Label ();
            grpLabel.Xalign = 0;
            grpLabel.Markup = "<small><i>Action Group</i></small>";
            //			vbox.PackStart (grpLabel, false, false, 0);
            vbox.PackStart (headerLabel, false, false, 3);
            vbox.BorderWidth = 12;
            ebox.Add (vbox);

            Gtk.VBox box = new Gtk.VBox ();
            box.Spacing = 6;
            box.PackStart (ebox, false, false, 0);
            box.PackStart (table, false, false, 0);

            fx.Put (box, 0, 0);
            Add (fx);
            ShowAll ();
        }
开发者ID:mono,项目名称:stetic,代码行数:33,代码来源:ActionGroupEditor.cs


示例6: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CleanUpPage1
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CleanUpPage1";
     // Container child ocmgtk.CleanUpPage1.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label2 = new Gtk.Label();
     this.label2.Name = "label2";
     this.label2.Ypad = 15;
     this.label2.Xalign = 0F;
     this.label2.LabelProp = Mono.Unix.Catalog.GetString("This assistant will help guide you through cleaning up your OCM database.\n\nBy reducing the number of logs per cache and compacting your database, you can greatly reduce the size of you OCM database which will improve performance. ");
     this.label2.Wrap = true;
     this.label2.WidthChars = 80;
     this.vbox1.Add(this.label2);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:29,代码来源:ocmgtk.CleanUpPage1.cs


示例7: Build

        private void Build()
        {
            this.vbMain = new Gtk.VBox( false, 5 );

            this.BuildActions();
            this.BuildMenu();
            this.BuildTools();

            // Events
            this.DeleteEvent += (o, args) => this.OnClose();
            this.Shown += (sender, e) => this.OnShow();

            // Polish
            this.WindowPosition = Gtk.WindowPosition.Center;
            this.Add( this.vbMain );
            this.Resize( 640, 480 );

            this.SetGeometryHints(
                this,
                new Gdk.Geometry() {
                    MinWidth = 320,
                    MinHeight = 200
                },
                Gdk.WindowHints.MinSize
            );
        }
开发者ID:Baltasarq,项目名称:GTKSharpDemo,代码行数:26,代码来源:MainWindowView.cs


示例8: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget omvviewerlight.TexturePreview
     this.Name = "omvviewerlight.TexturePreview";
     this.Title = Mono.Unix.Catalog.GetString("TexturePreview");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child omvviewerlight.TexturePreview.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label_title = new Gtk.Label();
     this.label_title.Name = "label_title";
     this.vbox1.Add(this.label_title);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label_title]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.image = new Gtk.Image();
     this.image.Name = "image";
     this.vbox1.Add(this.image);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.image]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
 }
开发者ID:robincornelius,项目名称:omvviewer-light,代码行数:35,代码来源:omvviewerlight.TexturePreview.cs


示例9: Build

 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget OpenVP.GtkGui.BrowsableEditor
     Stetic.BinContainer.Attach(this);
     this.Name = "OpenVP.GtkGui.BrowsableEditor";
     // Container child OpenVP.GtkGui.BrowsableEditor.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.SheetPane = new Gtk.ScrolledWindow();
     this.SheetPane.CanFocus = true;
     this.SheetPane.Name = "SheetPane";
     this.vbox2.Add(this.SheetPane);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.SheetPane]));
     w1.Position = 0;
     // Container child vbox2.Gtk.Box+BoxChild
     this.hbuttonbox2 = new Gtk.HButtonBox();
     this.hbuttonbox2.Name = "hbuttonbox2";
     this.hbuttonbox2.Homogeneous = true;
     this.hbuttonbox2.Spacing = 6;
     this.hbuttonbox2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.RevertButton = new Gtk.Button();
     this.RevertButton.Sensitive = false;
     this.RevertButton.CanFocus = true;
     this.RevertButton.Name = "RevertButton";
     this.RevertButton.UseStock = true;
     this.RevertButton.UseUnderline = true;
     this.RevertButton.Label = "gtk-revert-to-saved";
     this.hbuttonbox2.Add(this.RevertButton);
     Gtk.ButtonBox.ButtonBoxChild w2 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.RevertButton]));
     w2.Expand = false;
     w2.Fill = false;
     // Container child hbuttonbox2.Gtk.ButtonBox+ButtonBoxChild
     this.ApplyButton = new Gtk.Button();
     this.ApplyButton.Sensitive = false;
     this.ApplyButton.CanFocus = true;
     this.ApplyButton.Name = "ApplyButton";
     this.ApplyButton.UseStock = true;
     this.ApplyButton.UseUnderline = true;
     this.ApplyButton.Label = "gtk-apply";
     this.hbuttonbox2.Add(this.ApplyButton);
     Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox2[this.ApplyButton]));
     w3.Position = 1;
     w3.Expand = false;
     w3.Fill = false;
     this.vbox2.Add(this.hbuttonbox2);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbuttonbox2]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
     this.RevertButton.Clicked += new System.EventHandler(this.OnRevertButtonClicked);
     this.ApplyButton.Clicked += new System.EventHandler(this.OnApplyButtonClicked);
 }
开发者ID:Bamistro,项目名称:openvisualizationplatform,代码行数:60,代码来源:OpenVP.GtkGui.BrowsableEditor.cs


示例10: Build

        private void Build()
        {
            var vBox = new Gtk.VBox( false, 0 );

            this.BuildIcons();
            this.BuildActions();
            this.BuildMenu();
            this.BuildToolbar();
            this.BuildNotebook();
            this.BuildStatusbar();

            vBox.PackStart( this.mbMainMenu, false, false, 0 );
            vBox.PackStart( this.tbToolbar, false, false, 0 );
            vBox.PackStart( this.nbDocPages, true, true, 0 );
            vBox.PackStart( this.sbStatus, false, false, 0 );
            this.Add( vBox );
            this.ShowAll();

            // Prepare
            this.SetGeometryHints(
                this,
                new Gdk.Geometry { MinWidth = 640, MinHeight = 480 },
                Gdk.WindowHints.MinSize
            );
            this.DeleteEvent += (o, args) => this.OnTerminateWindow( args );
            this.Icon = this.iconTesty;
        }
开发者ID:Baltasarq,项目名称:Testy,代码行数:27,代码来源:MainWindowView.cs


示例11: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget fileparsersharp.ViewWindow
     this.Name = "fileparsersharp.ViewWindow";
     this.Title = "ViewWindow";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child fileparsersharp.ViewWindow.Gtk.Container+ContainerChild
     this.vbox2 = new Gtk.VBox();
     this.vbox2.Name = "vbox2";
     this.vbox2.Spacing = 6;
     // Container child vbox2.Gtk.Box+BoxChild
     this.label1 = new Gtk.Label();
     this.label1.Name = "label1";
     this.label1.LabelProp = "ViewWindow";
     this.vbox2.Add(this.label1);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1]));
     w1.Position = 1;
     w1.Expand = false;
     w1.Fill = false;
     this.Add(this.vbox2);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
 }
开发者ID:aelinden,项目名称:OruStuff,代码行数:28,代码来源:fileparsersharp.ViewWindow.cs


示例12: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.HTMLEditorWidget
     Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this);
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w2, 0);
     this.Name = "ocmgtk.HTMLEditorWidget";
     // Container child ocmgtk.HTMLEditorWidget.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.editorWindow = new Gtk.ScrolledWindow();
     this.editorWindow.CanFocus = true;
     this.editorWindow.Name = "editorWindow";
     this.editorWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child editorWindow.Gtk.Container+ContainerChild
     this.editor = new Gtk.TextView();
     this.editor.CanFocus = true;
     this.editor.Name = "editor";
     this.editor.WrapMode = ((Gtk.WrapMode)(2));
     this.editorWindow.Add(this.editor);
     this.vbox3.Add(this.editorWindow);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.editorWindow]));
     w4.Position = 0;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     w1.SetUiManager(UIManager);
     this.Hide();
 }
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:34,代码来源:ocmgtk.HTMLEditorWidget.cs


示例13: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ControlWrappers.BoundComboBox
     Stetic.BinContainer.Attach(this);
     this.Name = "ControlWrappers.BoundComboBox";
     // Container child ControlWrappers.BoundComboBox.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     // Container child vbox3.Gtk.Box+BoxChild
     this.cbBound = Gtk.ComboBox.NewText();
     this.cbBound.Name = "cbBound";
     this.vbox3.Add(this.cbBound);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.cbBound]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
     this.cbBound.Changed += new System.EventHandler(this.BoundComboValueChanged);
 }
开发者ID:Ripper555,项目名称:DynamicPropertyManagement,代码行数:25,代码来源:ControlWrappers.BoundComboBox.cs


示例14: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget PackageManager.Configuration
     Stetic.BinContainer.Attach(this);
     this.Name = "PackageManager.Configuration";
     // Container child PackageManager.Configuration.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.label = new Gtk.Label();
     this.label.Name = "label";
     this.label.Xalign = 0F;
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.vbox1.Add(this.label);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label]));
     w1.Position = 1;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.combobox = Gtk.ComboBox.NewText();
     this.combobox.Name = "combobox";
     this.vbox1.Add(this.combobox);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.combobox]));
     w2.Position = 2;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
开发者ID:scheibenkaes,项目名称:DoPackageManager,代码行数:34,代码来源:PackageManager.Configuration.cs


示例15: WindowView

        public WindowView(Main _view, Controller.Window _ctl)
        {
            View = _view;
            Window = _ctl;
            Homogeneous = false;
            Spacing = 0;
            BorderWidth = 0;
            var topLevelBox = new Gtk.VBox();
            topLevelBox.Homogeneous = false;
            topLevelBox.Spacing = 0;
            topLevelBox.BorderWidth = 0;
            textView = new WindowTextView(Window);
            scroll = new Gtk.ScrolledWindow {
                HscrollbarPolicy = Gtk.PolicyType.Automatic,
                VscrollbarPolicy = Gtk.PolicyType.Automatic
            };
            scroll.Add(textView);
            Window.CursorMovedByCommand.Add(i =>
            {
                textView.ScrollToIter(i.GtkIter, 0, false, 0, 0);
            });
            topLevelBox.PackStart(scroll, true, true, 0);
            status = new Gtk.Statusbar();
            status.HasResizeGrip = false;
            status.Push(StatusbarMode, Window.CurrentMode.GetName());
            Window.CurrentMode.Event.Changed += m =>
            {
                status.Pop(StatusbarMode);
                status.Push(StatusbarMode, Window.CurrentMode.GetName());
            };
            Window.Model.Changed += m =>
            {
                textView.Buffer = m;
            };
            topLevelBox.PackStart(status, false, false, 0);

            // Wrap the topLevelBox with borders on the left and right
            var hlBox = new Gtk.DrawingArea();
            NormalColor = hlBox.Style.Background(Gtk.StateType.Normal);
            hlBox.WidthRequest = 10;
            var borderBox = new Gtk.HBox();
            borderBox.Homogeneous = false;
            borderBox.Spacing = 0;
            borderBox.BorderWidth = 0;
            borderBox.PackStart(hlBox, false, false, 0);
            borderBox.PackStart(topLevelBox, true, true, 0);

            textView.FocusInEvent += (object o, Gtk.FocusInEventArgs args) =>
            {
                Window.Controller.FocusedWindow.Value = Window;
                hlBox.ModifyBg(Gtk.StateType.Normal, HighlightColor);
            };

            textView.FocusOutEvent += (object o, Gtk.FocusOutEventArgs args) =>
            {
                hlBox.ModifyBg(Gtk.StateType.Normal, NormalColor);
            };

            Add(borderBox);
        }
开发者ID:cpdean,项目名称:di,代码行数:60,代码来源:WindowView.cs


示例16: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.CleanupSummary
     Stetic.BinContainer.Attach(this);
     this.Name = "ocmgtk.CleanupSummary";
     // Container child ocmgtk.CleanupSummary.Gtk.Container+ContainerChild
     this.vbox3 = new Gtk.VBox();
     this.vbox3.Name = "vbox3";
     this.vbox3.Spacing = 6;
     this.vbox3.BorderWidth = ((uint)(6));
     // Container child vbox3.Gtk.Box+BoxChild
     this.summaryText = new Gtk.Label();
     this.summaryText.Name = "summaryText";
     this.summaryText.Xalign = 0F;
     this.summaryText.LabelProp = Mono.Unix.Catalog.GetString("Database cleanup complete");
     this.vbox3.Add(this.summaryText);
     Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox3[this.summaryText]));
     w1.Position = 0;
     w1.Expand = false;
     w1.Fill = false;
     // Container child vbox3.Gtk.Box+BoxChild
     this.hseparator2 = new Gtk.HSeparator();
     this.hseparator2.Name = "hseparator2";
     this.vbox3.Add(this.hseparator2);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator2]));
     w2.Position = 1;
     w2.Expand = false;
     w2.Fill = false;
     this.Add(this.vbox3);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Hide();
 }
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:35,代码来源:ocmgtk.CleanupSummary.cs


示例17: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget ocmgtk.OCMSplash
     this.WidthRequest = 744;
     this.HeightRequest = 600;
     this.Name = "ocmgtk.OCMSplash";
     this.Title = Mono.Unix.Catalog.GetString("OCMSplash");
     this.TypeHint = ((Gdk.WindowTypeHint)(4));
     this.WindowPosition = ((Gtk.WindowPosition)(3));
     this.Resizable = false;
     this.AllowGrow = false;
     this.Decorated = false;
     // Container child ocmgtk.OCMSplash.Gtk.Container+ContainerChild
     this.splashVBox = new Gtk.VBox();
     this.splashVBox.Name = "splashVBox";
     this.splashVBox.Spacing = 6;
     // Container child splashVBox.Gtk.Box+BoxChild
     this.labelAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.labelAlignment.Name = "labelAlignment";
     this.labelAlignment.LeftPadding = ((uint)(120));
     this.labelAlignment.TopPadding = ((uint)(430));
     // Container child labelAlignment.Gtk.Container+ContainerChild
     this.versionLabel = new Gtk.Label();
     this.versionLabel.Name = "versionLabel";
     this.versionLabel.Xalign = 0F;
     this.versionLabel.Yalign = 0F;
     this.versionLabel.LabelProp = "<b><big>Version XXX</big></b>\n<small>Copyright (c) Kyle Campbell 2010-2011</small>";
     this.versionLabel.UseMarkup = true;
     this.labelAlignment.Add(this.versionLabel);
     this.splashVBox.Add(this.labelAlignment);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.splashVBox[this.labelAlignment]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child splashVBox.Gtk.Box+BoxChild
     this.progressAlign = new Gtk.Alignment(0F, 0F, 1F, 1F);
     this.progressAlign.Name = "progressAlign";
     this.progressAlign.LeftPadding = ((uint)(120));
     this.progressAlign.RightPadding = ((uint)(400));
     // Container child progressAlign.Gtk.Container+ContainerChild
     this.loadProgress = new Gtk.ProgressBar();
     this.loadProgress.WidthRequest = 100;
     this.loadProgress.HeightRequest = 10;
     this.loadProgress.Name = "loadProgress";
     this.progressAlign.Add(this.loadProgress);
     this.splashVBox.Add(this.progressAlign);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.splashVBox[this.progressAlign]));
     w4.Position = 1;
     w4.Expand = false;
     w4.Fill = false;
     this.Add(this.splashVBox);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 786;
     this.DefaultHeight = 627;
     this.Show();
 }
开发者ID:cbuehler,项目名称:opencachemanager,代码行数:59,代码来源:ocmgtk.OCMSplash.cs


示例18: Build

 protected virtual void Build() {
     Stetic.Gui.Initialize(this);
     // Widget Mono.Upnp.GtkClient.MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.WidthRequest = 0;
     this.HeightRequest = 0;
     this.Name = "Mono.Upnp.GtkClient.MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("Mono.Upnp");
     this.WindowPosition = ((Gtk.WindowPosition)(1));
     // Container child Mono.Upnp.GtkClient.MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.hpaned = new Gtk.HPaned();
     this.hpaned.CanFocus = true;
     this.hpaned.Name = "hpaned";
     this.hpaned.Position = 354;
     this.hpaned.BorderWidth = ((uint)(5));
     // Container child hpaned.Gtk.Paned+PanedChild
     this.GtkScrolledWindow = new Gtk.ScrolledWindow();
     this.GtkScrolledWindow.Name = "GtkScrolledWindow";
     this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1));
     // Container child GtkScrolledWindow.Gtk.Container+ContainerChild
     this.list = new Gtk.TreeView();
     this.list.CanFocus = true;
     this.list.Name = "list";
     this.GtkScrolledWindow.Add(this.list);
     this.hpaned.Add(this.GtkScrolledWindow);
     Gtk.Paned.PanedChild w3 = ((Gtk.Paned.PanedChild)(this.hpaned[this.GtkScrolledWindow]));
     w3.Resize = false;
     // Container child hpaned.Gtk.Paned+PanedChild
     this.infoBox = new Gtk.VBox();
     this.infoBox.Name = "infoBox";
     this.infoBox.Spacing = 6;
     // Container child infoBox.Gtk.Box+BoxChild
     this.infoFiller = new Gtk.Label();
     this.infoFiller.Name = "infoFiller";
     this.infoFiller.LabelProp = Mono.Unix.Catalog.GetString("Select a device or service");
     this.infoBox.Add(this.infoFiller);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.infoBox[this.infoFiller]));
     w4.Position = 0;
     w4.Fill = false;
     this.hpaned.Add(this.infoBox);
     this.vbox1.Add(this.hpaned);
     Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned]));
     w6.Position = 0;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 1077;
     this.DefaultHeight = 527;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }
开发者ID:rsweeney21,项目名称:Mono.Upnp,代码行数:59,代码来源:Mono.Upnp.GtkClient.MainWindow.cs


示例19: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget DirectoryHistory.UI.HistoryDialog
     this.Name = "DirectoryHistory.UI.HistoryDialog";
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     this.DefaultWidth = 640;
     this.DefaultHeight = 480;
     // Internal child DirectoryHistory.UI.HistoryDialog.VBox
     Gtk.VBox w1 = this.VBox;
     w1.Name = "dialog1_VBox";
     w1.BorderWidth = ((uint)(2));
     // Container child dialog1_VBox.Gtk.Box+BoxChild
     this.entriesVbox = new Gtk.VBox();
     this.entriesVbox.Name = "entriesVbox";
     this.entriesVbox.Spacing = 6;
     // Container child entriesVbox.Gtk.Box+BoxChild
     this.label = new Gtk.Label();
     this.label.Name = "label";
     this.label.LabelProp = Mono.Unix.Catalog.GetString("label1");
     this.entriesVbox.Add(this.label);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.entriesVbox[this.label]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child entriesVbox.Gtk.Box+BoxChild
     this.scrolledwindow1 = new Gtk.ScrolledWindow();
     this.scrolledwindow1.CanFocus = true;
     this.scrolledwindow1.Name = "scrolledwindow1";
     this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1));
     this.entriesVbox.Add(this.scrolledwindow1);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.entriesVbox[this.scrolledwindow1]));
     w3.Position = 1;
     w1.Add(this.entriesVbox);
     Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.entriesVbox]));
     w4.Position = 0;
     // Internal child DirectoryHistory.UI.HistoryDialog.ActionArea
     Gtk.HButtonBox w5 = this.ActionArea;
     w5.Name = "dialog1_ActionArea";
     w5.Spacing = 10;
     w5.BorderWidth = ((uint)(5));
     w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
     // 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.UseStock = true;
     this.buttonOk.UseUnderline = true;
     this.buttonOk.Label = "gtk-ok";
     this.AddActionWidget(this.buttonOk, -5);
     Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk]));
     w6.Expand = false;
     w6.Fill = false;
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.Show();
 }
开发者ID:scheibenkaes,项目名称:DirectoryHistory,代码行数:59,代码来源:DirectoryHistory.UI.HistoryDialog.cs


示例20: Build

 protected virtual void Build()
 {
     Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.UIManager = new Gtk.UIManager();
     Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
     this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
     this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
     w1.Add(this.FiguresAction, null);
     this.AddClassFigureAction = new Gtk.Action("AddClassFigureAction", Mono.Unix.Catalog.GetString("Add Class Figure"), null, null);
     this.AddClassFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Class Figure");
     w1.Add(this.AddClassFigureAction, null);
     this.AddStackFigureAction = new Gtk.Action("AddStackFigureAction", Mono.Unix.Catalog.GetString("Add StackFigure"), null, null);
     this.AddStackFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add StackFigure");
     w1.Add(this.AddStackFigureAction, null);
     this.AddMemberGroupAction = new Gtk.Action("AddMemberGroupAction", Mono.Unix.Catalog.GetString("Add MemberGroup"), null, null);
     this.AddMemberGroupAction.ShortLabel = Mono.Unix.Catalog.GetString("Add MemberGroup");
     w1.Add(this.AddMemberGroupAction, null);
     this.AddSimpleTextFigureAction = new Gtk.Action("AddSimpleTextFigureAction", Mono.Unix.Catalog.GetString("Add SimpleTextFigure"), null, null);
     this.AddSimpleTextFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add SimpleTextFigure");
     w1.Add(this.AddSimpleTextFigureAction, null);
     this.UIManager.InsertActionGroup(w1, 0);
     this.AddAccelGroup(this.UIManager.AccelGroup);
     this.Name = "MainWindow";
     this.Title = Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.vbox1 = new Gtk.VBox();
     this.vbox1.Name = "vbox1";
     this.vbox1.Spacing = 6;
     // Container child vbox1.Gtk.Box+BoxChild
     this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddClassFigureAction' action='AddClassFigureAction'/><menuitem name='AddStackFigureAction' action='AddStackFigureAction'/><menuitem name='AddMemberGroupAction' action='AddMemberGroupAction'/><menuitem name='AddSimpleTextFigureAction' action='AddSimpleTextFigureAction'/></menu></menubar></ui>");
     this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
     this.menubar1.Name = "menubar1";
     this.vbox1.Add(this.menubar1);
     Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
     w2.Position = 0;
     w2.Expand = false;
     w2.Fill = false;
     // Container child vbox1.Gtk.Box+BoxChild
     this.mhdcanvas = new MonoHotDraw.SteticComponent();
     this.mhdcanvas.Events = ((Gdk.EventMask)(256));
     this.mhdcanvas.Name = "mhdcanvas";
     this.vbox1.Add(this.mhdcanvas);
     Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mhdcanvas]));
     w3.Position = 1;
     this.Add(this.vbox1);
     if ((this.Child != null)) {
         this.Child.ShowAll();
     }
     this.DefaultWidth = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.AddClassFigureAction.Activated += new System.EventHandler(this.OnAddClassFigureActionActivated);
     this.AddStackFigureAction.Activated += new System.EventHandler(this.OnAddStackFigureActionActivated);
     this.AddMemberGroupAction.Activated += new System.EventHandler(this.OnAddMemberGroupActionActivated);
     this.AddSimpleTextFigureAction.Activated += new System.EventHandler(this.OnAddSimpleTextFigureActionActivated);
 }
开发者ID:mono,项目名称:monohotdraw,代码行数:59,代码来源:MainWindow.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Gtk.Widget类代码示例发布时间:2022-05-24
下一篇:
C# Gtk.UIManager类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap