本文整理汇总了C#中Gtk.HBox.HideAll方法的典型用法代码示例。如果您正苦于以下问题:C# HBox.HideAll方法的具体用法?C# HBox.HideAll怎么用?C# HBox.HideAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.HBox
的用法示例。
在下文中一共展示了HBox.HideAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MonoDevelopStatusBar
//.........这里部分代码省略.........
x += feedbackButton.Allocation.Width;
y -= 6;
return new Gdk.Point (x, y);
};
}
// Dock area
DefaultWorkbench wb = (DefaultWorkbench)IdeApp.Workbench.RootWindow;
wb.DockFrame.ShadedContainer.Add (this);
Gtk.Widget dockBar = wb.DockFrame.ExtractDockBar (PositionType.Bottom);
dockBar.NoShowAll = true;
PackStart (dockBar, false, false, 0);
// Status panels
progressBar = new ProgressBar ();
progressBar.PulseStep = 0.1;
progressBar.SizeRequest ();
progressBar.HeightRequest = 1;
statusBox = new HBox (false, 0);
statusBox.BorderWidth = 0;
statusLabel = new Label ();
statusLabel.SetAlignment (0, 0.5f);
statusLabel.Wrap = false;
int w, h;
Gtk.Icon.SizeLookup (IconSize.Menu, out w, out h);
statusLabel.HeightRequest = h;
statusLabel.SetPadding (0, 0);
EventBox eventMessageBox = new EventBox ();
messageBox = new HBox ();
messageBox.PackStart (progressBar, false, false, 0);
messageBox.PackStart (statusLabel, true, true, 0);
eventMessageBox.Add (messageBox);
statusBox.PackStart (eventMessageBox, true, true, 0);
eventMessageBox.ButtonPressEvent += HandleEventMessageBoxButtonPressEvent;
textStatusBarPanel.BorderWidth = 0;
textStatusBarPanel.ShadowType = ShadowType.None;
textStatusBarPanel.Add (statusBox);
var eventCaretBox = new EventBox ();
var caretStatusBox = new HBox ();
modeLabel = new Label (" ");
caretStatusBox.PackEnd (modeLabel, false, false, 8);
cursorLabel = new CaretStatusLabel (" ");
caretStatusBox.PackEnd (cursorLabel, false, false, 0);
caretStatusBox.GetSizeRequest (out w, out h);
caretStatusBox.WidthRequest = w;
caretStatusBox.HeightRequest = h;
eventCaretBox.Add (caretStatusBox);
statusBox.PackEnd (eventCaretBox, false, false, 0);
statusIconBox = new HBox ();
statusIconBox.BorderWidth = 0;
statusIconBox.Spacing = 3;
statusBox.PackEnd (statusIconBox, false, false, 4);
this.PackStart (textStatusBarPanel, true, true, 0);
ShowReady ();
Gtk.Box.BoxChild boxChild = (Gtk.Box.BoxChild)this[textStatusBarPanel];
boxChild.Position = 0;
boxChild.Expand = boxChild.Fill = true;
// boxChild = (Gtk.Box.BoxChild)this[originalFrame];
// boxChild.Padding = 0;
// boxChild.Expand = boxChild.Fill = false;
this.progressBar.Fraction = 0.0;
this.ShowAll ();
statusIconBox.HideAll ();
originalFrame.HideAll ();
progressBar.Visible = false;
StatusBarContext completionStatus = null;
// todo: Move this to the CompletionWindowManager when it's possible.
CompletionWindowManager.WindowShown += delegate {
CompletionListWindow wnd = CompletionWindowManager.Wnd;
if (wnd != null && wnd.List != null && wnd.List.CategoryCount > 1) {
if (completionStatus == null)
completionStatus = CreateContext ();
completionStatus.ShowMessage (string.Format (GettextCatalog.GetString ("To toggle categorized completion mode press {0}."), IdeApp.CommandService.GetCommandInfo (Commands.TextEditorCommands.ShowCompletionWindow).AccelKey));
}
};
CompletionWindowManager.WindowClosed += delegate {
if (completionStatus != null) {
completionStatus.Dispose ();
completionStatus = null;
}
};
}
示例2: MonoDevelopStatusBar
internal MonoDevelopStatusBar()
{
mainContext = new MainStatusBarContextImpl (this);
activeContext = mainContext;
contexts.Add (mainContext);
Frame originalFrame = (Frame)Children[0];
// originalFrame.WidthRequest = 8;
// originalFrame.Shadow = ShadowType.In;
// originalFrame.BorderWidth = 0;
BorderWidth = 0;
DefaultWorkbench wb = (DefaultWorkbench) IdeApp.Workbench.RootWindow;
wb.DockFrame.ShadedContainer.Add (this);
Gtk.Widget dockBar = wb.DockFrame.ExtractDockBar (PositionType.Bottom);
dockBar.NoShowAll = true;
PackStart (dockBar, false, false, 0);
progressBar = new ProgressBar ();
progressBar.PulseStep = 0.1;
progressBar.SizeRequest ();
progressBar.HeightRequest = 1;
statusBox = new HBox (false, 0);
statusBox.BorderWidth = 0;
statusLabel = new Label ();
statusLabel.SetAlignment (0, 0.5f);
statusLabel.Wrap = false;
int w, h;
Gtk.Icon.SizeLookup (IconSize.Menu, out w, out h);
statusLabel.HeightRequest = h;
statusLabel.SetPadding (0, 0);
EventBox eventMessageBox = new EventBox ();
messageBox = new HBox ();
messageBox.PackStart (progressBar, false, false, 0);
messageBox.PackStart (statusLabel, true, true, 0);
eventMessageBox.Add (messageBox);
statusBox.PackStart (eventMessageBox, true, true, 0);
eventMessageBox.ButtonPressEvent += HandleEventMessageBoxButtonPressEvent;
textStatusBarPanel.BorderWidth = 0;
textStatusBarPanel.ShadowType = ShadowType.None;
textStatusBarPanel.Add (statusBox);
Label fillerLabel = new Label ();
fillerLabel.WidthRequest = 8;
statusBox.PackEnd (fillerLabel, false, false, 0);
modeLabel = new Label (" ");
statusBox.PackEnd (modeLabel, false, false, 8);
cursorLabel = new Label (" ");
statusBox.PackEnd (cursorLabel, false, false, 0);
statusIconBox = new HBox ();
statusIconBox.BorderWidth = 0;
statusIconBox.Spacing = 3;
statusBox.PackEnd (statusIconBox, false, false, 4);
this.PackStart (textStatusBarPanel, true, true, 0);
ShowReady ();
Gtk.Box.BoxChild boxChild = (Gtk.Box.BoxChild)this[textStatusBarPanel];
boxChild.Position = 0;
boxChild.Expand = boxChild.Fill = true;
// boxChild = (Gtk.Box.BoxChild)this[originalFrame];
// boxChild.Padding = 0;
// boxChild.Expand = boxChild.Fill = false;
this.progressBar.Fraction = 0.0;
this.ShowAll ();
statusIconBox.HideAll ();
originalFrame.HideAll ();
progressBar.Visible = false;
StatusBarContext completionStatus = null;
// todo: Move this to the CompletionWindowManager when it's possible.
CompletionWindowManager.WindowShown += delegate {
CompletionListWindow wnd = CompletionWindowManager.Wnd;
if (wnd != null && wnd.List != null && wnd.List.CategoryCount > 1) {
if (completionStatus == null)
completionStatus = CreateContext ();
completionStatus.ShowMessage (string.Format (GettextCatalog.GetString ("To toggle categorized completion mode press {0}."), IdeApp.CommandService.GetCommandInfo (Commands.TextEditorCommands.ShowCompletionWindow).AccelKey));
}
};
CompletionWindowManager.WindowClosed += delegate {
if (completionStatus != null) {
completionStatus.Dispose ();
completionStatus = null;
}
};
}