本文整理汇总了C#中Gtk.VBox.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# VBox.ShowAll方法的具体用法?C# VBox.ShowAll怎么用?C# VBox.ShowAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.VBox
的用法示例。
在下文中一共展示了VBox.ShowAll方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TrackInfoPopup
public TrackInfoPopup()
: base(Gtk.WindowType.Popup)
{
BorderWidth = 8;
AppPaintable = true;
Resizable = false;
TypeHint = Gdk.WindowTypeHint.Notification;
VBox box = new VBox ();
box.Spacing = 4;
header = new ClassicTrackInfoDisplay ();
header.SetSizeRequest (320, 64);
seek_slider = new ConnectedSeekSlider (SeekSliderLayout.Horizontal);
seek_slider.StreamPositionLabel.FormatString = "<small>{0}</small>";
seek_slider.LeftPadding = 0;
seek_slider.RightPadding = 0;
box.PackStart (header, true, true, 0);
box.PackStart (seek_slider, false, false, 0);
Add (box);
box.ShowAll ();
}
示例2: CodeCompilationPanel
public CodeCompilationPanel()
{
InitializeComponent();
vbox = new VBox();
var hboxTmp = new HBox();
hboxTmp.PackStart (codeGenerationLabel, false, false, 0);
vbox.PackStart (hboxTmp, false, false, 12);
hboxTmp = new HBox();
var tableOutputOptions = new Table (4, 2, false);
tableOutputOptions.Attach (outputLabel, 0, 1, 0, 1, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
tableOutputOptions.Attach (outputAssembly, 1, 2, 0, 1, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill, 0, 3);
tableOutputOptions.Attach (labelOutputDir, 0, 1, 1, 2, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
tableOutputOptions.Attach (outputDirectory, 1, 2, 1, 2, AttachOptions.Fill | AttachOptions.Expand , AttachOptions.Fill, 0, 3);
tableOutputOptions.Attach (labelCompileTarget, 0, 1, 2, 3, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
tableOutputOptions.Attach (compileTargetCombo, 1, 2, 2, 3, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill, 0, 3);
tableOutputOptions.Attach (labelCulture, 0, 1, 3, 4, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
tableOutputOptions.Attach (culture, 1, 2, 3, 4, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill, 0, 3);
hboxTmp.PackStart (tableOutputOptions, true, true, 6);
vbox.PackStart (hboxTmp, false, false, 0);
hboxTmp = new HBox ();
hboxTmp.PackStart (labelWarnings, false, false, 0);
vbox.PackStart (hboxTmp, false, false, 12);
hboxTmp = new HBox();
hboxTmp.PackStart (checkDebug, false, false, 6);
vbox.PackStart (hboxTmp, false, false, 0);
hboxTmp = new HBox();
hboxTmp.PackStart (checkDucky, false, false, 6);
vbox.PackStart (hboxTmp, false, false, 0);
vbox.ShowAll ();
}
示例3: CreateWidgets
private Widget CreateWidgets()
{
VBox vbox = new VBox(false, 0);
Label l = new Label("<span size=\"large\">Base Colors</span>");
vbox.PackStart(l, false, false, 0);
l.UseMarkup = true;
l.Xalign = 0;
vbox.PackStart(CreateColorBox("Normal", this.Style.Base(StateType.Normal)));
vbox.PackStart(CreateColorBox("Active", this.Style.Base(StateType.Active)));
vbox.PackStart(CreateColorBox("Prelight", this.Style.Base(StateType.Prelight)));
vbox.PackStart(CreateColorBox("Selected", this.Style.Base(StateType.Selected)));
vbox.PackStart(CreateColorBox("Insensitive", this.Style.Base(StateType.Insensitive)));
l = new Label("<span size=\"large\">Background Colors</span>");
vbox.PackStart(l, false, false, 0);
l.UseMarkup = true;
l.Xalign = 0;
vbox.PackStart(CreateColorBox("Normal", this.Style.Background(StateType.Normal)));
vbox.PackStart(CreateColorBox("Active", this.Style.Background(StateType.Active)));
vbox.PackStart(CreateColorBox("Prelight", this.Style.Background(StateType.Prelight)));
vbox.PackStart(CreateColorBox("Selected", this.Style.Background(StateType.Selected)));
vbox.PackStart(CreateColorBox("Insensitive", this.Style.Background(StateType.Insensitive)));
l = new Label("<span size=\"large\">Foreground Colors</span>");
vbox.PackStart(l, false, false, 0);
l.UseMarkup = true;
l.Xalign = 0;
vbox.PackStart(CreateColorBox("Normal", this.Style.Foreground(StateType.Normal)));
vbox.PackStart(CreateColorBox("Active", this.Style.Foreground(StateType.Active)));
vbox.PackStart(CreateColorBox("Prelight", this.Style.Foreground(StateType.Prelight)));
vbox.PackStart(CreateColorBox("Selected", this.Style.Foreground(StateType.Selected)));
vbox.PackStart(CreateColorBox("Insensitive", this.Style.Foreground(StateType.Insensitive)));
vbox.ShowAll();
return vbox;
}
示例4: ArtworkPopup
public ArtworkPopup() : base(Gtk.WindowType.Popup)
{
VBox vbox = new VBox();
Add(vbox);
Decorated = false;
BorderWidth = 6;
SetPosition(WindowPosition.CenterAlways);
image = new Gtk.Image();
label = new Label(String.Empty);
label.CanFocus = false;
label.Wrap = true;
label.ModifyBg(StateType.Normal, new Color(0, 0, 0));
label.ModifyFg(StateType.Normal, new Color(160, 160, 160));
ModifyBg(StateType.Normal, new Color(0, 0, 0));
ModifyFg(StateType.Normal, new Color(160, 160, 160));
vbox.PackStart(image, true, true, 0);
vbox.PackStart(label, false, false, 0);
vbox.Spacing = 6;
vbox.ShowAll();
}
示例5: ArtworkPopup
public ArtworkPopup()
: base(Gtk.WindowType.Popup)
{
VBox vbox = new VBox();
Add(vbox);
Decorated = false;
BorderWidth = 6;
SetPosition(WindowPosition.CenterAlways);
image = new Gtk.Image();
label = new Label(String.Empty);
label.CanFocus = false;
label.Wrap = true;
var bg_color = new RGBA ();
bg_color.Red = bg_color.Green = bg_color.Blue = 0;
var fg_color = new RGBA ();
fg_color.Red = bg_color.Green = bg_color.Blue = 160.0 / 255;
label.OverrideBackgroundColor (StateFlags.Normal, bg_color);
label.OverrideColor (StateFlags.Normal, fg_color);
OverrideBackgroundColor (StateFlags.Normal, bg_color);
OverrideColor (StateFlags.Normal, fg_color);
vbox.PackStart(image, true, true, 0);
vbox.PackStart(label, false, false, 0);
vbox.Spacing = 6;
vbox.ShowAll();
}
示例6: DockFrame
public DockFrame ()
{
shadedContainer = new ShadedContainer ();
dockBarTop = new DockBar (this, Gtk.PositionType.Top);
dockBarBottom = new DockBar (this, Gtk.PositionType.Bottom);
dockBarLeft = new DockBar (this, Gtk.PositionType.Left);
dockBarRight = new DockBar (this, Gtk.PositionType.Right);
container = new DockContainer (this);
HBox hbox = new HBox ();
hbox.PackStart (dockBarLeft, false, false, 0);
hbox.PackStart (container, true, true, 0);
hbox.PackStart (dockBarRight, false, false, 0);
mainBox = new VBox ();
mainBox.PackStart (dockBarTop, false, false, 0);
mainBox.PackStart (hbox, true, true, 0);
mainBox.PackStart (dockBarBottom, false, false, 0);
Add (mainBox);
mainBox.ShowAll ();
mainBox.NoShowAll = true;
CompactGuiLevel = 2;
dockBarTop.UpdateVisibility ();
dockBarBottom.UpdateVisibility ();
dockBarLeft.UpdateVisibility ();
dockBarRight.UpdateVisibility ();
}
示例7: DockFrame
public DockFrame ()
{
Mono.TextEditor.GtkWorkarounds.FixContainerLeak (this);
dockBarTop = new DockBar (this, Gtk.PositionType.Top);
dockBarBottom = new DockBar (this, Gtk.PositionType.Bottom);
dockBarLeft = new DockBar (this, Gtk.PositionType.Left);
dockBarRight = new DockBar (this, Gtk.PositionType.Right);
container = new DockContainer (this);
HBox hbox = new HBox ();
hbox.PackStart (dockBarLeft, false, false, 0);
hbox.PackStart (container, true, true, 0);
hbox.PackStart (dockBarRight, false, false, 0);
mainBox = new VBox ();
mainBox.PackStart (dockBarTop, false, false, 0);
mainBox.PackStart (hbox, true, true, 0);
mainBox.PackStart (dockBarBottom, false, false, 0);
Add (mainBox);
mainBox.ShowAll ();
mainBox.NoShowAll = true;
CompactGuiLevel = 2;
dockBarTop.UpdateVisibility ();
dockBarBottom.UpdateVisibility ();
dockBarLeft.UpdateVisibility ();
dockBarRight.UpdateVisibility ();
DefaultVisualStyle = new DockVisualStyle ();
}
示例8: ProgressWindow
public ProgressWindow() : base(Catalog.GetString("File Operation Progress")) {
vbox = new VBox();
this.Add(vbox);
vbox.ShowAll();
DeleteEvent += OnDeleteEvent;
}
示例9: TopLevelDialog
public TopLevelDialog ( )
{
vbox = new VBox ();
separator = new HSeparator ();
buttonBox = new HButtonBox ();
vbox.PackEnd (buttonBox, false, false, 0);
vbox.PackEnd (separator, false, false, 0);
vbox.ShowAll ();
Add (vbox);
}
示例10: TrayPopupWindow
public TrayPopupWindow() : base(Gtk.WindowType.Popup)
{
//Stetic.Gui.Build(this, typeof(giver.TrayPopupWindow));
VBox test = new VBox();
titleLabel = new Label("User X has sent Y of Z files");
test.Add (titleLabel);
test.ShowAll();
this.Add(test);
}
示例11: build
private void build()
{
this.buildMain ();
var a = new Gtk.VBox (false, 5);
this.vBoxMain.Visible = true;
a.PackStart (vBoxMain);
this.Add (a);
a.ShowAll ();
//events
this.DeleteEvent += (o, args) =>this.OnClose() ;
}
示例12: DockFrame
public DockFrame()
{
shadedContainer = new ShadedContainer ();
container = new DockContainer (this);
HBox hbox = new HBox ();
hbox.PackStart (container, true, true, 0);
mainBox = new VBox ();
mainBox.PackStart (hbox, true, true, 0);
Add (mainBox);
mainBox.ShowAll ();
mainBox.NoShowAll = true;
CompactGuiLevel = 2;
}
示例13: ImageVisualizerView
public ImageVisualizerView ()
{
vbox = new VBox (false, 6);
vbox.BorderWidth = 6;
image = new Gtk.Image ();
scrolledWindow = new ScrolledWindow ();
scrolledWindow.Add (image);
vbox.PackStart (scrolledWindow, true, true, 0);
vbox.ShowAll ();
}
示例14: AddOperation
public void AddOperation(GtkFileOperationProgress progress) {
VBox subvbox = new VBox();
Label lbl = new Label();
subvbox.PackStart(lbl, false, false, 0);
ProgressBar bar = new ProgressBar();
bar.Adjustment = new Adjustment(0.0, 0.0, 500.0, 1.0, 1.0, 1.0);
subvbox.PackStart(bar, true, true, 0);
vbox.PackStart(subvbox, false, true, 0);
subvbox.ShowAll();
progress.DisplayWidget = bar;
progress.Label = lbl;
progress.Adjustment = bar.Adjustment;
this.ShowAll();
}
示例15: CreatePreferencesControl
/// <summary>
/// Creates a Gtk.Widget that's used to configure the service. This
/// will be used in the Synchronization Preferences. Preferences should
/// not automatically be saved by a GConf Property Editor. Preferences
/// should be saved when SaveConfiguration () is called.
/// </summary>
public override Gtk.Widget CreatePreferencesControl (EventHandler requiredPrefChanged)
{
Gtk.Table table = new Gtk.Table (3, 2, false);
table.RowSpacing = 5;
table.ColumnSpacing = 10;
// Read settings out of gconf
string server, folder, username;
int port;
GetConfigSettings (out server, out folder, out username, out port);
if (server == null)
server = string.Empty;
if (port > -1 && port != 22)
server += ":" + port.ToString ();
if (folder == null)
folder = string.Empty;
if (username == null)
username = string.Empty;
serverEntry = new Entry ();
serverEntry.Text = server;
serverEntry.Changed += requiredPrefChanged;
AddRow (table, serverEntry, Catalog.GetString ("Se_rver:"), 0);
usernameEntry = new Entry ();
usernameEntry.Text = username;
AddRow (table, usernameEntry, Catalog.GetString ("User_name:"), 1);
folderEntry = new Entry ();
folderEntry.Text = folder;
AddRow (table, folderEntry, Catalog.GetString ("_Folder Path (optional):"), 2);
// Text for label describing setup required for SSH sync addin to work
string sshInfo = Catalog.GetString ("SSH synchronization requires an existing SSH key for this " +
"server and user, added to a running SSH daemon.");
Label l = new Label ();
l.UseMarkup = true;
l.Markup = string.Format ("<span size=\"small\">{0}</span>",
sshInfo);
l.Wrap = true;
VBox vbox = new VBox (false, 5);
vbox.PackStart (table);
vbox.PackStart (l);
vbox.ShowAll ();
return vbox;
}