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


C# Gtk.Show方法代码示例

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


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

示例1: TransferProps

		void TransferProps (Gtk.MenuShell oldMenu, Gtk.MenuShell newMenu)
		{
			if (oldMenu.Visible)
				newMenu.Show ();
			if (!oldMenu.Sensitive)
				newMenu.Sensitive = false;
		}
开发者ID:m13253,项目名称:xwt,代码行数:7,代码来源:MenuBackend.cs

示例2: TreeViewCellContainer

		public TreeViewCellContainer (Gtk.Widget child)
		{
			box = new EventBox ();
			box.ButtonPressEvent += new ButtonPressEventHandler (OnClickBox);
			box.Add (child);
			child.Show ();
			Show ();
		}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:8,代码来源:TreeViewCellContainer.cs

示例3: TreeViewCellContainer

		public TreeViewCellContainer (Gtk.Widget child)
		{
			box = new EventBox ();
			box.ButtonPressEvent += new ButtonPressEventHandler (OnClickBox);
			box.ModifyBg (StateType.Normal, Style.White);
			box.Add (child);
			child.Show ();
			Show ();
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:9,代码来源:TreeViewCellContainer.cs

示例4: AddRow

		// TODO: Centralize duplicated code
		private void AddRow (Gtk.Table table, Gtk.Widget widget, string labelText, uint row)
		{
			Gtk.Label l = new Gtk.Label (labelText);
			l.UseUnderline = true;
			l.Xalign = 0.0f;
			l.Show ();
			table.Attach (l, 0, 1, row, row + 1,
			              Gtk.AttachOptions.Fill,
			              Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill,
			              0, 0);

			widget.Show ();
			table.Attach (widget, 1, 2, row, row + 1,
			              Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill,
			              Gtk.AttachOptions.Expand | Gtk.AttachOptions.Fill,
			              0, 0);

			l.MnemonicWidget = widget;

			// TODO: Tooltips
		}
开发者ID:MichaelAquilina,项目名称:tomboy,代码行数:22,代码来源:WebDavSyncServiceAddin.cs

示例5: ShowWindow

        public static bool ShowWindow(Gtk.Window window)
        {
            #if DEBUG
            Console.WriteLine("Window.ShowWindow");
            #endif

            window.Show ();
            return false;
        }
开发者ID:kashifsoofi,项目名称:bygfoot,代码行数:9,代码来源:Window.cs

示例6: MiniButton

		public MiniButton (Gtk.Widget label): this ()
		{
			Add (label);
			label.Show ();
		}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:5,代码来源:MiniButton.cs

示例7: AddWidget

 private void AddWidget(Gtk.Widget widget)
 {
     widget.Show ();
     this.VBox.Add (widget);
 }
开发者ID:xxgreg,项目名称:Pinta,代码行数:5,代码来源:SimpleEffectDialog.cs

示例8: PrepareFileTxtView

        public static void PrepareFileTxtView(Gtk.TreeView tvTable)
        {
            try {
            Gtk.ListStore listStore = new Gtk.ListStore( new System.Type[]{ typeof(string) } );
            tvTable.Model = listStore;

            // Delete existing columns
            while( tvTable.Columns.Length > 0 ) {
                tvTable.RemoveColumn( tvTable.Columns[ 0 ] );
            }

            // Create data column
            var column = new Gtk.TreeViewColumn();
            var cell = new Gtk.CellRendererText();
            column.Title = "txt";
            column.PackStart( cell, true );
            cell.Editable = false;
            cell.Foreground = "black";
            cell.Background = "white";
            column.AddAttribute( cell, "text", 0 );
             		tvTable.AppendColumn( column );
            } catch(Exception e) {
            Util.MsgError( null, Core.AppInfo.Name, "Error building view: '" + e.Message + '\'' );
            }

            tvTable.EnableGridLines = TreeViewGridLines.Horizontal;
            tvTable.SetCursor(
                new TreePath( new int[]{ 0 } ),
                tvTable.Columns[ 0 ],
                false
            );
            tvTable.Show();
        }
开发者ID:Baltasarq,项目名称:Visor,代码行数:33,代码来源:Gui.cs

示例9: UseCustomWidget

		internal void UseCustomWidget (Gtk.Widget widget)
		{
			toolbarProvider.Attach (null);
			ClearToolbar ();
			customWidget = true;
			frame.Remove (frame.Child);
			frame.Add (widget);
			widget.Show ();			
		}
开发者ID:JamesChan,项目名称:monodevelop,代码行数:9,代码来源:PropertyPad.cs

示例10: addWidget

 protected void addWidget(Gtk.Widget addMe, int posX, int posY)
 {
     fixed1.Put(addMe, posX, posY);
     addMe.Show();
 }
开发者ID:shark555,项目名称:Resources-Reservation-System,代码行数:5,代码来源:GUIMain.cs

示例11: UseCustomWidget

		internal void UseCustomWidget (Gtk.Widget widget)
		{
			customWidget = true;
			frame.Remove (frame.Child);
			frame.Add (widget);
			widget.Show ();			
		}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:7,代码来源:PropertyPad.cs

示例12: UseCustomWidget

		internal void UseCustomWidget (Gtk.Widget widget)
		{
			if (container != null) {
				var toolbar = container.GetToolbar (Gtk.PositionType.Top);
				foreach (var w in toolbar.Children)
					toolbar.Remove (w);
			}
			customWidget = true;
			frame.Remove (frame.Child);
			frame.Add (widget);
			widget.Show ();			
		}
开发者ID:nieve,项目名称:monodevelop,代码行数:12,代码来源:PropertyPad.cs

示例13: PackEnd

		/// <summary>
		/// Packs widget on the right side of the box. Every next packed widget
		/// gets packed before previous
		/// </summary>
		/// <param name="aWidget">
		/// Widget to insert inside <see cref="Gtk.Widget"/>
		/// </param>
		public void PackEnd (Gtk.Widget aWidget)
		{
			if (aWidget == null)
				return;
			if (AfterAlignment.RightPadding == 0)
				AfterAlignment.RightPadding = 3;
			AfterBox.PackEnd (aWidget, false, false, 0);
			if (aWidget is Gtk.Entry) {
				(aWidget as Gtk.Entry).FocusInEvent += OnEntryFocusIn;
				(aWidget as Gtk.Entry).FocusOutEvent += OnEntryFocusOut;				
			}
			else {
				aWidget.CanFocus = false;
			}
			aWidget.Show();
		}
开发者ID:QualitySolution,项目名称:Gtk.DataBindings,代码行数:23,代码来源:ComplexEntryBox.cs

示例14: PackStart

		/// <summary>
		/// Packs widget on the left side of the box. Every next packed widget
		/// gets packed after previous
		/// </summary>
		/// <param name="aWidget">
		/// Widget to insert inside <see cref="Gtk.Widget"/>
		/// </param>
		public void PackStart (Gtk.Widget aWidget)
		{
			if (aWidget == null)
				return;
			if (BeforeAlignment.LeftPadding == 0)
				BeforeAlignment.LeftPadding = 3;
			BeforeBox.PackEnd (aWidget, false, false, 0);
			aWidget.CanFocus = false;
			aWidget.Show();
		}
开发者ID:QualitySolution,项目名称:Gtk.DataBindings,代码行数:17,代码来源:ComplexEntryBox.cs

示例15: OnAdded

        protected override void OnAdded(Gtk.Widget widget)
        {
            if (widget.Equals(this.vboxWindow))
                base.OnAdded (widget);

            this.vboxClient.PackStart (widget, true, true, 0);
            widget.Show();
        }
开发者ID:MagistrTot,项目名称:DGLE,代码行数:8,代码来源:CustomWindow.cs


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