本文整理汇总了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;
}
示例2: TreeViewCellContainer
public TreeViewCellContainer (Gtk.Widget child)
{
box = new EventBox ();
box.ButtonPressEvent += new ButtonPressEventHandler (OnClickBox);
box.Add (child);
child.Show ();
Show ();
}
示例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 ();
}
示例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
}
示例5: ShowWindow
public static bool ShowWindow(Gtk.Window window)
{
#if DEBUG
Console.WriteLine("Window.ShowWindow");
#endif
window.Show ();
return false;
}
示例6: MiniButton
public MiniButton (Gtk.Widget label): this ()
{
Add (label);
label.Show ();
}
示例7: AddWidget
private void AddWidget(Gtk.Widget widget)
{
widget.Show ();
this.VBox.Add (widget);
}
示例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();
}
示例9: UseCustomWidget
internal void UseCustomWidget (Gtk.Widget widget)
{
toolbarProvider.Attach (null);
ClearToolbar ();
customWidget = true;
frame.Remove (frame.Child);
frame.Add (widget);
widget.Show ();
}
示例10: addWidget
protected void addWidget(Gtk.Widget addMe, int posX, int posY)
{
fixed1.Put(addMe, posX, posY);
addMe.Show();
}
示例11: UseCustomWidget
internal void UseCustomWidget (Gtk.Widget widget)
{
customWidget = true;
frame.Remove (frame.Child);
frame.Add (widget);
widget.Show ();
}
示例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 ();
}
示例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();
}
示例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();
}
示例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();
}