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


C# HBox.Show方法代码示例

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


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

示例1: DockItemContainer

		public DockItemContainer (DockFrame frame, DockItem item)
		{
			this.item = item;

			mainBox = new VBox ();
			Add (mainBox);

			mainBox.ResizeMode = Gtk.ResizeMode.Queue;
			mainBox.Spacing = 0;
			
			ShowAll ();
			
			mainBox.PackStart (item.GetToolbar (PositionType.Top).Container, false, false, 0);
			
			HBox hbox = new HBox ();
			hbox.Show ();
			hbox.PackStart (item.GetToolbar (PositionType.Left).Container, false, false, 0);
			
			contentBox = new HBox ();
			contentBox.Show ();
			hbox.PackStart (contentBox, true, true, 0);
			
			hbox.PackStart (item.GetToolbar (PositionType.Right).Container, false, false, 0);
			
			mainBox.PackStart (hbox, true, true, 0);
			
			mainBox.PackStart (item.GetToolbar (PositionType.Bottom).Container, false, false, 0);
		}
开发者ID:wickedshimmy,项目名称:monodevelop,代码行数:28,代码来源:DockItemContainer.cs

示例2: NotebookTabLabel

        public NotebookTabLabel(string title)
        {
            Button button = new Button ();
            button.Image = new Gtk.Image (Stock.Close, IconSize.Menu);
            button.TooltipText = "Close Tab";
            button.Relief = ReliefStyle.None;

            RcStyle rcStyle = new RcStyle ();
            rcStyle.Xthickness = 0;
            rcStyle.Ythickness = 0;
            button.ModifyStyle (rcStyle);

            button.FocusOnClick = false;
            button.Clicked += OnCloseClicked;
            button.Show ();

            Label label = new Label (title);
            label.UseMarkup = false;
            label.UseUnderline = false;
            label.Show ();

            HBox hbox = new HBox (false, 0);
            hbox.Spacing = 0;
            hbox.Add (label);
            hbox.Add (button);
            hbox.Show ();

            this.Add (hbox);
        }
开发者ID:alpinechough,项目名称:monocov,代码行数:29,代码来源:NotebookTabLabel.cs

示例3: Category

		public Category (Tiles.TileGroupInfo info, int columns)
		{
			WidgetFlags |= WidgetFlags.NoWindow;

			header = new Gtk.HBox (false, 0);

			headerExpander = new Gtk.Expander ("<big><b>" + GLib.Markup.EscapeText (info.Name) + "</b></big>");
			((Gtk.Label) headerExpander.LabelWidget).SetAlignment (0.0f, 0.5f);
			headerExpander.UseMarkup = true;
			headerExpander.UseUnderline = true;
			headerExpander.Show ();
			header.PackStart (headerExpander, true, true, 0);

			headerExpander.Activated += OnActivated;
			
			scope = Tiles.Utils.TileGroupToScopeType(info.Group);
			
			position = new Gtk.Label ();
			position.ModifyFg (Gtk.StateType.Normal, position.Style.Base (Gtk.StateType.Selected));
			header.PackStart (position, false, false, 0);
			position.Show ();

			prev = MakeButton (header, Gtk.Stock.GoBack, OnPrev);
			next = MakeButton (header, Gtk.Stock.GoForward, OnNext);

			header.Show ();
			header.Parent = this;
			header.SizeRequested += HeaderSizeRequested;

			tiles = new SortedTileList (Beagle.Search.SortType.Relevance);
			Columns = columns;

			UpdateButtons ();
			Expanded = true;	
		}
开发者ID:ArsenShnurkov,项目名称:beagle-1,代码行数:35,代码来源:Category.cs

示例4: Tile

		public Tile (Hit hit, Query query) : base ()
		{
			base.AboveChild = true;
			base.AppPaintable = true;
			base.CanFocus = true;

			this.hit = hit;
			this.query = query;
			this.timestamp = hit.Timestamp;
			this.score = hit.Score;

			Gtk.Drag.SourceSet (this, Gdk.ModifierType.Button1Mask, targets,
					    Gdk.DragAction.Copy | Gdk.DragAction.Move);

			int pad = (int)StyleGetProperty ("focus-line-width") + (int)StyleGetProperty ("focus-padding") + 1;

			hbox = new Gtk.HBox (false, 5);
			hbox.BorderWidth = (uint)(pad + Style.Xthickness);
			hbox.Show ();

			icon = new Gtk.Image ();
			icon.Show ();
			hbox.PackStart (icon, false, false, 0);

			Add (hbox);
		}
开发者ID:ArsenShnurkov,项目名称:beagle-1,代码行数:26,代码来源:Tile.cs

示例5: MessageBar

        public MessageBar () : base (0.0f, 0.5f, 1.0f, 0.0f)
        {
            win = new Window (WindowType.Popup);
            win.Name = "gtk-tooltips";
            win.EnsureStyle ();
            win.StyleSet += delegate {
                Style = win.Style;
            };

            HBox shell_box = new HBox ();
            shell_box.Spacing = 10;

            box = new HBox ();
            box.Spacing = 10;

            image = new AnimatedImage ();
            try {
                image.Pixbuf = Gtk.IconTheme.Default.LoadIcon ("process-working", 22, IconLookupFlags.NoSvg);
                image.FrameHeight = 22;
                image.FrameWidth = 22;
                Spinning = false;
                image.Load ();
            } catch {
            }

            label = new WrapLabel ();
            label.Show ();

            box.PackStart (image, false, false, 0);
            box.PackStart (label, true, true, 0);
            box.Show ();

            button_box = new HBox ();
            button_box.Spacing = 3;

            close_button = new Button (new Image (Stock.Close, IconSize.Menu));
            close_button.Relief = ReliefStyle.None;
            close_button.Clicked += delegate { Hide (); };
            close_button.ShowAll ();
            close_button.Hide ();

            shell_box.PackStart (box, true, true, 0);
            shell_box.PackStart (button_box, false, false, 0);
            shell_box.PackStart (close_button, false, false, 0);
            shell_box.Show ();

            Add (shell_box);

            EnsureStyle ();

            BorderWidth = 3;
        }
开发者ID:rubenv,项目名称:tripod,代码行数:52,代码来源:MessageBar.cs

示例6: DiscoverWindow

        public DiscoverWindow()
            : base(Gtk.WindowType.Toplevel)
        {
            this.Title = "LinuxGUITest";
            this.DeleteEvent += new DeleteEventHandler(OnDeleteEvent);
            this.WindowPosition = Gtk.WindowPosition.Center;

            _Provider = DeviceProviderRegistry.CreateSupportedDeviceProvider();

            _Provider.DeviceFound += new EventHandler<DeviceInfoEventArgs>(DeviceFound);
            _Provider.DeviceLost += new EventHandler<DeviceInfoEventArgs>(DeviceLost);

            _UpdateThread = new Thread(new ThreadStart(UpdateFunction));
            _UpdateThread.Start();

            _HBox = new HBox(true, 0);
            _HBox.Homogeneous = false;
            this.Add(_HBox);
            _HBox.Show();

            Gtk.TreeView tree = new Gtk.TreeView();
            tree.WidthRequest = 250;
            tree.HeightRequest = 300;
            _HBox.PackStart(tree);

            // new column
            Gtk.TreeViewColumn devicetypeColumn = new Gtk.TreeViewColumn();
            devicetypeColumn.Title = "Type";
            Gtk.CellRendererText devicetypeCell = new CellRendererText();
            devicetypeColumn.PackStart(devicetypeCell, true);
            devicetypeColumn.AddAttribute(devicetypeCell, "text", 0);

            // new column
            Gtk.TreeViewColumn detailsColumn = new Gtk.TreeViewColumn();
            detailsColumn.Title = "Details";
            Gtk.CellRendererText detailseCell = new CellRendererText();
            detailsColumn.PackStart(detailseCell, true);
            detailsColumn.AddAttribute(detailseCell, "text", 1);

            tree.AppendColumn(devicetypeColumn);
            tree.AppendColumn(detailsColumn);
            _ListStore = new Gtk.ListStore(typeof(string), typeof(string));

            tree.Model = _ListStore;

            _HBox.ShowAll();

            LogLine("Searching for wii devices...");
            _Provider.StartDiscovering();
        }
开发者ID:nydehi,项目名称:wiidevicelibrary,代码行数:50,代码来源:DiscoverWindow.cs

示例7: windowVTETerminal

        public windowVTETerminal(String Name, int Columns, int Rows, String FontString)
        {
            HBox hbox = new HBox ();
            term = new Terminal ();
            term.CursorBlinks = true;
            term.MouseAutohide = false;
            term.ScrollOnKeystroke = true;
            term.DeleteBinding = TerminalEraseBinding.Auto;
            term.BackspaceBinding = TerminalEraseBinding.Auto;
            term.FontFromString = FontString;
            term.Emulation = "xterm";
            term.Encoding = "UTF-8";

            term.SetSize(Columns,Rows);

            VScrollbar vscroll = new VScrollbar (term.Adjustment);
            hbox.PackStart (term);
            hbox.PackStart (vscroll);

            //			Gdk.Color white = new Gdk.Color ();
            //			Gdk.Color.Parse ("white", ref white);
            //
            //			Gdk.Color black = new Gdk.Color ();
            //			Gdk.Color.Parse ("black", ref black);
            //			term.SetColors (black, white, new Gdk.Color[]{}, 16);

            term.ButtonPressEvent += (o, args) =>
            {
                Write(args.Event.Button.ToString());
            };

            this.CanFocus = true;

            term.Show ();
            hbox.Show ();
            vscroll.Show ();
            this.Add (hbox);
            ShowAll ();

            KeyPress += (Gdk.Key key) =>
            {
                if (LocalEcho) Write(key.ToString());

                if (shellStream!=null && shellStream.CanWrite)
                    {
                         shellStream.WriteByte((byte)key);
                         shellStream.Flush();
                    }
            };
        }
开发者ID:Clancey,项目名称:SSHDebugger,代码行数:50,代码来源:windowVTETerminal.cs

示例8: 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

示例9: ProfileComboBoxConfigurable

        public ProfileComboBoxConfigurable(MediaProfileManager manager, string configurationId, Box parent)
        {
            HBox editor = new HBox();

            configuration_id = configurationId;
            combo = new ProfileComboBox(manager);
            combo.Show();

            button = new ProfileConfigureButton(configurationId);
            button.ComboBox = combo;
            button.Show();

            editor.Spacing = 5;
            editor.PackStart(combo, true, true, 0);
            editor.PackStart(button, false, false, 0);
            editor.Show();

            ProfileConfiguration config = manager.GetActiveProfileConfiguration (configurationId);

            if (config != null) {
                Combo.SetActiveProfile(config.Profile);
            }

            description = new DescriptionLabel (delegate {
                var profile = Combo.ActiveProfile;
                return profile != null ? profile.Description : "";
            });

            Combo.Changed += delegate {
                if(Combo.ActiveProfile != null) {
                    Hyena.Log.DebugFormat ("Setting active encoding profile: {0} (saved to {1})",
                        Combo.ActiveProfile.Name, configurationId);
                    ProfileConfiguration.SaveActiveProfile (Combo.ActiveProfile, configurationId);
                    description.Update ();
                }
            };

            Combo.StateChanged += delegate {
                if (Combo.State == StateType.Insensitive && description.Parent != null) {
                    ((Container)parent ?? this).Remove (description);
                } else if (description.Parent == null) {
                    description.PackInto (parent ?? this, parent != null);
                }
            };

            Spacing = 5;
            PackStart (editor, true, true, 0);
            description.PackInto (parent ?? this, parent != null);
        }
开发者ID:knocte,项目名称:banshee,代码行数:49,代码来源:ProfileComboBoxConfigurable.cs

示例10: ModeButton

        public ModeButton()
        {
            this.Events |= EventMask.PointerMotionMask
                        |  EventMask.ButtonPressMask
                        |  EventMask.VisibilityNotifyMask;

            this.VisibilityNotifyEvent += delegate { this.QueueDraw (); };

            m_box = new HBox (true, 6);
            m_box.BorderWidth = 6;
            this.Add (m_box);
            m_box.Show ();

            m_button = new Button ();
            m_box.PackStart (m_button, false, false, 0);
        }
开发者ID:chergert,项目名称:custom-gtk-widgets,代码行数:16,代码来源:ModeButton.cs

示例11: add_toolbar

        public void add_toolbar(string name, Toolbar toolbar)
        {
            Gtk.Label label = new Label(name);
            label.SetSizeRequest((int)Sugar.Style.TOOLBOX_TAB_LABEL_WIDTH, -1);
            label.SetAlignment(0.0f, 0.5f);

            Gtk.HBox toolbar_box = new HBox();
            toolbar_box.PackStart(toolbar,true, true, Sugar.Style.TOOLBOX_HORIZONTAL_PADDING);

            toolbar_box.ExposeEvent += _toolbar_box_expose_cb;
            _notebook.AppendPage(toolbar_box, label);
            toolbar_box.Show();

            if (_notebook.NPages>1) {
                _notebook.ShowTabs=true;
            //				_separator.Show();
            }
        }
开发者ID:mauroguardarini,项目名称:sugar-sharp,代码行数:18,代码来源:Toolbox.cs

示例12: MenuButton

        public MenuButton()
        {
            hbox = new HBox ();

            Image = new Image ();
            hbox.PackStart (Image, false, false, 1);
            Image.Show ();

            this.titleLabel = new Label ();
            this.titleLabel.Xalign = 0;
            hbox.PackStart (this.titleLabel, true, true, 1);
            this.titleLabel.Show ();

            this.arrow = new Arrow (ArrowType.Down, ShadowType.None);
            hbox.PackStart (arrow, false, false, 1);
            arrow.Show ();

            this.Add (hbox);
            hbox.Show ();
        }
开发者ID:QualitySolution,项目名称:QSProjects,代码行数:20,代码来源:MenuButton.cs

示例13: ColorEditor

		public ColorEditor(object @object, PropertyInfo info) : base(@object, info) {
			HBox box = new HBox();
			box.Spacing = 6;
			box.Show();
			
			this.mColorButton = new ColorButton();
			this.mColorButton.Show();
			box.PackStart(this.mColorButton, false, true, 0);
			
			this.mAlphaScale = new HScale(0, 1, 0.0001);
			this.mAlphaScale.Show();
			box.PackStart(this.mAlphaScale, true, true, 0);
			
			this.Add(box);
			
			this.Revert();
			
			this.mColorButton.ColorSet += this.OnDirtyAction;
			this.mAlphaScale.ValueChanged += this.OnDirtyAction;
		}
开发者ID:Bamistro,项目名称:openvisualizationplatform,代码行数:20,代码来源:ColorEditor.cs

示例14: MenuButton

		public MenuButton (string label, Menu menu, ArrowType arrow_type) : base ()
		{
			HBox hbox = new HBox ();
			
			this.image = new Image ();
			hbox.PackStart (this.image, false, false, 1);
			image.Show ();

			this.label = new Label (label);
			this.label.Xalign = 0;
			hbox.PackStart (this.label, true, true, 1);
			this.label.Show ();

			this.arrow = new Arrow (arrow_type, ShadowType.None);
			hbox.PackStart (arrow, false, false, 1);
			arrow.Show ();

			Menu = menu;

			this.Add (hbox);
			hbox.Show ();
		}
开发者ID:guadalinex-archive,项目名称:guadalinex-v6,代码行数:22,代码来源:MenuButton.cs

示例15: SetButtonIcon

		static void SetButtonIcon (Button button, string stockIcon)
		{
			Alignment alignment = new Alignment (0.5f, 0.5f, 0f, 0f);
			Label label = new Label (button.Label);
			HBox hbox = new HBox (false, 2);
			Image image = new Image ();
			
			image.Pixbuf = Stetic.IconLoader.LoadIcon (button, stockIcon, IconSize.Button);
			image.Show ();
			hbox.Add (image);
			
			label.Show ();
			hbox.Add (label);
			
			hbox.Show ();
			alignment.Add (hbox);
			
			button.Child.Destroy ();
			
			alignment.Show ();
			button.Add (alignment);
		}
开发者ID:nieve,项目名称:monodevelop,代码行数:22,代码来源:FindInFilesDialog.cs


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