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


C# VBox.Show方法代码示例

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


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

示例1: GlToggleButton

        public GlToggleButton(GdkGL.Config config)
        {
            // VBox.
            VBox vbox = new VBox (false, 0);
            vbox.BorderWidth = 10;

            // Drawing area for drawing OpenGL scene.
            DrawingArea drawing_area = new DrawingArea ();
            drawing_area.SetSizeRequest (200, 200);

            // Set OpenGL-capability to the widget.
            m_gl = new GlWidget (drawing_area, config);
            drawing_area.Realized += new EventHandler (Realize);
            drawing_area.ConfigureEvent += new ConfigureEventHandler (Configure);
            drawing_area.ExposeEvent += new ExposeEventHandler (Expose);
            drawing_area.Unrealized += new EventHandler (Unrealize);
            drawing_area.VisibilityNotifyEvent += new VisibilityNotifyEventHandler (VisibilityNotify);

            vbox.PackStart (drawing_area, true, true, 0);
            drawing_area.Show ();

            // Label.
            Label label = new Label ("Toggle Animation");
            vbox.PackStart (label, false, false, 10);
            label.Show ();

            Toggled += new EventHandler (ToggleAnimation);

            // Add VBox.
            vbox.Show ();
            Add (vbox);
        }
开发者ID:GNOME,项目名称:gtkglext-sharp,代码行数:32,代码来源:button.cs

示例2: AudioView

        public AudioView()
        {
            //			this.WidthRequest = 500; //250;
            //			this.HeightRequest = 375; //187;

            Frame frame = new Frame();
            frame.BorderWidth = 5;
            frame.Show();

            VBox vbox = new VBox(false, 0);
            frame.Add(vbox);
            vbox.Show();

            Label label = new Label(Catalog.GetString("Audio Chat in progress..."));

            label.Show();
            vbox.PackStart(label, false, true, 5);

            Button button = new Button(Catalog.GetString("End Call"));
            button.Clicked += OnCloseAudioClicked;
            button.Show();
            vbox.PackStart(button, false, true, 5);

            this.Add(frame);
        }
开发者ID:GNOME,项目名称:banter,代码行数:25,代码来源:AudioView.cs

示例3: NewSearchPage

        public NewSearchPage()
            : base(0.5f, 0.5f, 0f, 0f)
        {
            base.SetPadding(36, 36, 36, 36);
            base.FocusGrabbed += base_FocusGrabbed;

            mainVBox = new VBox();

            Label label = new Label();
            label.Xalign = 0;
            label.Markup = "<span size=\"x-large\" weight=\"bold\">Search for files...</span>";
            mainVBox.PackStart(label, false, false, 0);
            label.Show();

            searchEntry = new FileSearchEntry();
            searchEntry.WidthRequest = 400;
            mainVBox.PackStart(searchEntry, false, false, 6);
            searchEntry.Show();

            searchButton = new Button("_Search");
            searchButton.Image = new Image(Stock.Find, IconSize.Button);
            searchButton.Clicked += searchButton_Clicked;
            searchButton.Show();

            HButtonBox buttonBox = new HButtonBox();
            buttonBox.Layout = ButtonBoxStyle.End;
            buttonBox.PackStart(searchButton, false, false, 0);
            mainVBox.PackStart(buttonBox, false, false, 0);
            buttonBox.Show();

            base.Add(mainVBox);
            mainVBox.Show();
        }
开发者ID:codebutler,项目名称:meshwork,代码行数:33,代码来源:NewSearchPage.cs

示例4: SdiWorkspaceWindow

		public SdiWorkspaceWindow (DefaultWorkbench workbench, IViewContent content, Notebook tabControl, TabLabel tabLabel) : base ()
		{
			this.workbench = workbench;
			this.tabControl = tabControl;
			this.content = content;
			this.tabLabel = tabLabel;
			this.tabPage = content.Control;
			
			content.WorkbenchWindow = this;
			
			content.ContentNameChanged += new EventHandler(SetTitleEvent);
			content.DirtyChanged       += new EventHandler(SetTitleEvent);
			content.BeforeSave         += new EventHandler(BeforeSave);
			content.ContentChanged     += new EventHandler (OnContentChanged);
			
			ShadowType = ShadowType.None;
			box = new VBox ();
			box.PackStart (content.Control);
			Add (box);
			box.Show ();
			
			SetTitleEvent(null, null);
			
			commandHandler = new ViewCommandHandlers (this);
			Show ();
		}
开发者ID:acken,项目名称:monodevelop,代码行数:26,代码来源:SdiWorkspaceWindow.cs

示例5: Main

        public static int Main(string[] args)
        {
            Gtk.Application.Init (ref args);
            GtkGL.Application.Init (ref args);

            /*
            * Query OpenGL extension version.
            */
            int major, minor;
            Query.Version (out major, out minor);
            Console.WriteLine ("\nOpenGL extension version - {0}.{1}", major, minor);

            // * Configure OpenGL-capable visual.
            // Try double-buffered visual
            GdkGL.Config glconfig = new GdkGL.Config (GdkGL.ConfigMode.Rgb | GdkGL.ConfigMode.Double);
            if (glconfig == null) {
              		Console.WriteLine ("*** Cannot find the double-buffered visual.\n*** Trying single-buffered visual.");
                glconfig = new GdkGL.Config (GdkGL.ConfigMode.Rgb);
                if (glconfig == null) {
                      Console.WriteLine ("*** Cannot find any OpenGL-capable visual.");
                      return 1;
                }
            }

            GlUtilities.WriteOutConfig (glconfig);

            // Top-level window.
            Window window = new Window (WindowType.Toplevel);
            window.Title = "shapes";

            // Get automatically redrawn if any of their children changed allocation.
            window.ReallocateRedraws = true;
            window.DeleteEvent += new DeleteEventHandler (OnDelete);

            // VBox.
            VBox vbox = new VBox (false, 0);
            window.Add (vbox);
            vbox.Show ();

            // Drawing area for drawing OpenGL scene.
            ShapesArea drawing_area = new ShapesArea (glconfig);
            drawing_area.SetSizeRequest (300, 300);

            vbox.PackStart (drawing_area, true, true, 0);
            drawing_area.Show ();

            // Simple quit button.
            Button button = new Button ("Quit");
            button.Clicked += new EventHandler (OnQuit);
            vbox.PackStart (button, false, false, 0);
            button.Show ();

            // Show window.
            window.Show ();

            //
            Gtk.Application.Run ();
            return 0;
        }
开发者ID:GNOME,项目名称:gtkglext-sharp,代码行数:59,代码来源:shapes.cs

示例6: GetPreferenceTabWidget

		public override bool GetPreferenceTabWidget (	PreferencesDialog parent,
								out string tabLabel,
								out Gtk.Widget preferenceWidget)
		{
			
			Gtk.Label label;
			Gtk.SpinButton menuNoteCountSpinner;
			Gtk.Alignment align;
			int menuNoteCount;

			// Addin's tab caption
			tabLabel = Catalog.GetString ("Advanced");
			
			Gtk.VBox opts_list = new Gtk.VBox (false, 12);
			opts_list.BorderWidth = 12;
			opts_list.Show ();
			
			align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 1.0f);
			align.Show ();
			opts_list.PackStart (align, false, false, 0);

			Gtk.Table table = new Gtk.Table (1, 2, false);
			table.ColumnSpacing = 6;
			table.RowSpacing = 6;
			table.Show ();
			align.Add (table);


			// Menu Note Count option
			label = new Gtk.Label (Catalog.GetString ("Minimum number of notes to show in Recent list (maximum 18)"));

			label.UseMarkup = true;
			label.Justify = Gtk.Justification.Left;
			label.SetAlignment (0.0f, 0.5f);
			label.Show ();
			
			table.Attach (label, 0, 1, 0, 1);
		
			menuNoteCount = (int) Preferences.Get (Preferences.MENU_NOTE_COUNT);
			// we have a hard limit of 18 set, thus not allowing anything bigger than 18
			menuNoteCountSpinner = new Gtk.SpinButton (1, 18, 1);
			menuNoteCountSpinner.Value = menuNoteCount <= 18 ? menuNoteCount : 18;
			
			menuNoteCountSpinner.Show ();
			table.Attach (menuNoteCountSpinner, 1, 2, 0, 1);
			
			menuNoteCountSpinner.ValueChanged += UpdateMenuNoteCountPreference;
			
			if (opts_list != null) {
				preferenceWidget = opts_list;
				return true;
			} else {
				preferenceWidget = null;
				return false;
			}
		}
开发者ID:oluc,项目名称:tomboy,代码行数:56,代码来源:AdvancedPreferencesAddin.cs

示例7: VideoView

        public VideoView()
        {
            preview_pos = PreviewPos.ButtonRight;

            VBox vbox = new VBox(false, 0);
            vbox.Show();

            Frame frame = new Frame();
            //frame.BorderWidth = 5;
            frame.Show();

            vbox.Add(frame);

            mainView = new Gtk.EventBox();
            mainView.WidthRequest = 400;
            mainView.HeightRequest = 300;
            mainView.ModifyBg (Gtk.StateType.Normal, new Gdk.Color (255,255,255));
            mainView.ModifyBg (Gtk.StateType.Active, new Gdk.Color (255,255,255));
            mainView.Show();

            //this.WidthRequest = 333; // 500; //250;
            //this.HeightRequest = 250; // 375; //187; 250
            preview = new Gtk.DrawingArea ();
            preview.WidthRequest = 120; // 75; //150;
            preview.HeightRequest = 90; // 56; //112;
            preview.ModifyBg (Gtk.StateType.Normal, new Gdk.Color (0,0,0));
            preview.ModifyBg (Gtk.StateType.Active, new Gdk.Color (0,0,0));
            preview.Show();

            fix = new Gtk.Fixed ();
            fix.Put (preview, space, space);
            fix.Show();
            mainView.Add(fix);

            frame.Add(mainView);

            //			Label label = new Label(Catalog.GetString("Video Chat in progress..."));

            //			label.Show();
            //			vbox.PackStart(label, false, true, 0);

            Button button = new Button(Catalog.GetString("End Call"));
            button.Clicked += OnCloseVideoClicked;
            button.Show();
            vbox.PackStart(button, false, false, 5);

            this.Add(vbox);
            mainView.SizeAllocated += OnSizeAllocated;
            //			this.SizeRequested += OnsizeRequested;
            this.QueueResize ();
            MovePreview ();
        }
开发者ID:GNOME,项目名称:banter,代码行数:52,代码来源:VideoView.cs

示例8: Main

    public static void Main()
    {
        Gtk.Window window;
        Gtk.VBox   vbox;
        Crumbs     crumbs;

        Application.Init ();

        // Outer Window
        window = new Gtk.Window ("Crumbs Test");
        window.BorderWidth = 12;
        window.Destroyed += OnDestroy;

        // Main VBox
        vbox = new Gtk.VBox ();
        window.Add(vbox);
        vbox.Show ();

        // Crumbs widget
        crumbs = new Crumbs ();
        vbox.PackStart (crumbs, false, false, 0);

        // Home Button
        crumbs.Add (new Gtk.Image (Gtk.Stock.Home, Gtk.IconSize.Menu));

        // Folder1
        HBox hbox1 = new HBox ();
        hbox1.Spacing = 3;
        Gtk.Image img1 = new Gtk.Image (Stock.Directory, IconSize.Menu);
        hbox1.PackStart (img1, false, true, 0);
        hbox1.PackStart (new Label ("Documents"));
        hbox1.ShowAll ();
        crumbs.Add (hbox1);

        // Folder2
        HBox hbox2 = new HBox ();
        hbox2.Spacing = 3;
        Gtk.Image img2 = new Gtk.Image (Stock.Directory, IconSize.Menu);
        hbox2.PackStart (img2, false, true, 0);
        hbox2.PackStart (new Label ("Spreadsheets"));
        hbox2.ShowAll ();
        crumbs.Add (hbox2);

        // Worksheet
        crumbs.Add (new Label ("Worksheet"));

        crumbs.ShowAll ();
        window.Show ();

        Application.Run ();
    }
开发者ID:manicolosi,项目名称:manico-crumbs,代码行数:51,代码来源:EntryPoint.cs

示例9: TypeKindChooserDialog

 public TypeKindChooserDialog()
     : base(GettextCatalog.GetString ("Choose a type"))
 {
     Gtk.HBox hbox = new Gtk.HBox();
     base.VBox.Add (hbox);
     Gtk.VBox vbox;
     // box 1
     vbox = new Gtk.VBox ();
     hbox.Add (vbox);
     AddButton (vbox, GettextCatalog.GetString ("Activity"), SetActivity);
     _selection = "Activity";
     AddButton (vbox, GettextCatalog.GetString ("Actor"), SetActor);
     AddButton (vbox, GettextCatalog.GetString ("Artifact"), SetArtifact);
     AddButton (vbox, GettextCatalog.GetString ("Association"), SetAssociation);
     AddButton (vbox, GettextCatalog.GetString ("AssociationClass"), SetAssociationClass);
     AddButton (vbox, GettextCatalog.GetString ("Class"), SetClass);
     AddButton (vbox, GettextCatalog.GetString ("Collaboration"), SetCollaboration);
     vbox.Show ();
     // box 2
     vbox = new Gtk.VBox();
     hbox.Add (vbox);
     AddButton (vbox, GettextCatalog.GetString ("CommunicationPath"), SetCommunicationPath);
     AddButton (vbox, GettextCatalog.GetString ("Component"), SetComponent);
     AddButton (vbox, GettextCatalog.GetString ("DataType"), SetDataType);
     AddButton (vbox, GettextCatalog.GetString ("DeploymentSpecification"), SetDeploymentSpecification);
     AddButton (vbox, GettextCatalog.GetString ("Device"), SetDevice);
     AddButton (vbox, GettextCatalog.GetString ("Enumeration"), SetEnumeration);
     AddButton (vbox, GettextCatalog.GetString ("ExecutionEnvironment"), SetExecutionEnvironment);
     vbox.Show ();
     // box 3
     vbox = new Gtk.VBox ();
     hbox.Add (vbox);
     AddButton (vbox, GettextCatalog.GetString ("Extension"), SetExtension);
     AddButton (vbox, GettextCatalog.GetString ("InformationItem"), SetInformationItem);
     AddButton (vbox, GettextCatalog.GetString ("Interaction"), SetInteraction);
     AddButton (vbox, GettextCatalog.GetString ("Interface"), SetInterface);
     AddButton (vbox, GettextCatalog.GetString ("Node"), SetNode);
     AddButton (vbox, GettextCatalog.GetString ("PrimitiveType"), SetPrimitiveType);
     AddButton (vbox, GettextCatalog.GetString ("ProtocolStateMachine"), SetProtocolStateMachine);
     vbox.Show ();
     // box 4
     vbox = new Gtk.VBox ();
     hbox.Add (vbox);
     AddButton (vbox, GettextCatalog.GetString ("Signal"), SetSignal);
     AddButton (vbox, GettextCatalog.GetString ("StateMachine"), SetStateMachine);
     AddButton (vbox, GettextCatalog.GetString ("Stereotype"), SetStereotype);
     AddButton (vbox, GettextCatalog.GetString ("UseCase"), SetUseCase);
     vbox.Show ();
     hbox.Show ();
 }
开发者ID:MonoBrasil,项目名称:historico,代码行数:50,代码来源:TypeKindChooserDialog.cs

示例10: WelcomePageFrame

		public WelcomePageFrame (Gtk.Widget w)
		{
			VBox box = new VBox ();
			box.Show ();
			projectBar = new WelcomePageProjectBar ();
			box.PackStart (projectBar, false, false, 0);

			box.PackStart (w, true, true, 0);
			CanFocus = true;

			Add (box);
			Show ();
			UpdateProjectBar ();
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:14,代码来源:WelcomePageFrame.cs

示例11: CombinedDesignView

		public CombinedDesignView (IViewContent content)
		{
			this.content = content;
			if (content is IEditableTextBuffer) {
				((IEditableTextBuffer)content).CaretPositionSet += delegate {
					ShowPage (0);
				};
			}
			content.ContentChanged += new EventHandler (OnTextContentChanged);
			content.DirtyChanged += new EventHandler (OnTextDirtyChanged);
			
			notebook = new Gtk.Notebook ();
			
			// Main notebook
			
			notebook.TabPos = Gtk.PositionType.Bottom;
			notebook.ShowTabs = false;
			notebook.ShowBorder = false;
			notebook.Show ();
			box = new VBox ();
			
			// Bottom toolbar
			
			toolbar = new Toolbar ();
			toolbar.IconSize = IconSize.SmallToolbar;
			toolbar.ToolbarStyle = ToolbarStyle.BothHoriz;
			toolbar.ShowArrow = false;
			
			CommandRouterContainer crc = new CommandRouterContainer (content.Control, content, true);
			crc.Show ();
			AddButton (GettextCatalog.GetString ("Source Code"), crc).Active = true;
			
			toolbar.ShowAll ();
			
			box.PackStart (notebook, true, true, 0);
			box.PackStart (toolbar, false, false, 0);
			
			box.Show ();
			
			IdeApp.Workbench.ActiveDocumentChanged += new EventHandler (OnActiveDocumentChanged);
			content.Control.Realized += delegate {
				if (content != null && content.WorkbenchWindow != null) 
					content.WorkbenchWindow.ActiveViewContent = notebook.CurrentPageWidget == content.Control ? content : this;
			};
			notebook.SwitchPage += delegate {
				if (content != null && content.WorkbenchWindow != null) 
					content.WorkbenchWindow.ActiveViewContent = notebook.CurrentPageWidget == content.Control ? content : this;
			};
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:49,代码来源:CombinedDesignView.cs

示例12: ExceptionCaughtDialog

		public ExceptionCaughtDialog (ExceptionInfo ex, ExceptionCaughtMessage msg)
			: base (WindowType.Toplevel)
		{
			this.Child = VBox = new VBox ();
			VBox.Show ();
			this.Name = "wizard_dialog";
			this.ApplyTheme ();
			selected = exception = ex;
			message = msg;

			Build ();
			UpdateDisplay ();

			exception.Changed += ExceptionChanged;
		}
开发者ID:kdubau,项目名称:monodevelop,代码行数:15,代码来源:ExceptionCaughtDialog.cs

示例13: StatusView

        public StatusView(string filepath, VersionControlSystem vc)
            : base(Path.GetFileName(filepath) + " Status")
        {
            this.vc = vc;
            this.filepath = filepath;

            main = new VBox(false, 5);
            widget = main;
            main.Show();

            commandbar = new HBox(false, 5);
            main.PackStart(commandbar, false, false, 5);

            showRemoteStatus = new Button("Show Remote Status");
            commandbar.PackEnd(showRemoteStatus, false, false, 0);
            showRemoteStatus.Clicked += new EventHandler(OnShowRemoteStatusClicked);

            buttonCommit = new Button("Commit...");
            commandbar.PackEnd(buttonCommit, false, false, 0);
            buttonCommit.Clicked += new EventHandler(OnCommitClicked);

            boxCommit = new VBox(false, 2);
            textCommitMessage = new TextView();
            HBox boxCommitButtons = new HBox(false, 2);
            buttonCommitCancel = new Button("Cancel");
            buttonCommitCommit = new Button("Commit");
            textCommitMessage.Show();
            buttonCommitCancel.Show();
            buttonCommitCommit.Show();
            boxCommit.PackStart(textCommitMessage, true, true, 0);
            boxCommit.PackStart(boxCommitButtons, false, false, 0);
            boxCommitButtons.PackEnd(buttonCommitCancel, false, false, 0);
            boxCommitButtons.PackEnd(buttonCommitCommit, false, false, 0);
            buttonCommitCancel.Clicked += new EventHandler(OnCommitCancelClicked);
            buttonCommitCommit.Clicked += new EventHandler(OnCommitCommitClicked);

            ScrolledWindow scroller = new ScrolledWindow();
            Viewport viewport = new Viewport();
            box = new VBox(false, 5);
            main.Add(scroller);

            viewport.Add(box);
            scroller.Add(viewport);

            main.ShowAll();

            StartUpdate();
        }
开发者ID:slluis,项目名称:monodevelop-prehistoric,代码行数:48,代码来源:Statuses.cs

示例14: WelcomePageFrame

		public WelcomePageFrame (Gtk.Widget w)
		{
			VBox box = new VBox ();
			box.Show ();
			projectBar = new WelcomePageProjectBar ();
			box.PackStart (projectBar, false, false, 0);

			box.PackStart (w, true, true, 0);
			CanFocus = true;

			Add (box);
			Show ();
			UpdateProjectBar ();

			IdeApp.Workbench.GuiLocked += HandleGuiLocked;
			IdeApp.Workbench.GuiUnlocked += HandleGuiUnlocked;
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:17,代码来源:WelcomePageFrame.cs

示例15: HmPreferencesWidget

        public HmPreferencesWidget()
            : base()
        {
            HmBackend.LoadCredentials (out this.username, out this.password);

            //Fixme Please ! I look UGLY!
            VBox mainVBox = new VBox(false, 12);
            mainVBox.BorderWidth = 10;
            mainVBox.Show();
            Add(mainVBox);

            HBox usernameBox = new HBox(false, 12);
            Gtk.Label emailLabel = new Label ("Email Address");
            usernameBox.Add (emailLabel);
            emailEntry = new Entry(username);
            usernameBox.Add (emailEntry);
            usernameBox.ShowAll();
            mainVBox.PackStart (usernameBox, false, false, 0);

            HBox passwordBox = new HBox(false, 12);
            Gtk.Label passwordLabel = new Label ("Password");
            passwordBox.Add (passwordLabel);
            passwordEntry = new Entry(password);
            passwordBox.Add (passwordEntry);
            passwordBox.ShowAll();
            mainVBox.PackStart (passwordBox, false, false, 0);

            // Status message label
            statusLabel = new Label();
            statusLabel.Justify = Gtk.Justification.Center;
            statusLabel.Wrap = true;
            statusLabel.LineWrap = true;
            statusLabel.Show();
            statusLabel.UseMarkup = true;
            statusLabel.UseUnderline = false;

            mainVBox.PackStart(statusLabel, false, false, 0);

            authButton = new LinkButton("Click Here to Connect");
            authButton.Show();
            mainVBox.PackStart(authButton, false, false, 0);
            mainVBox.ShowAll();

            authButton.Clicked += OnAuthButtonClicked;
        }
开发者ID:mono-soc-2012,项目名称:Tasque,代码行数:45,代码来源:HmPreferencesWidget.cs


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