本文整理汇总了C#中VBox.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# VBox.ShowAll方法的具体用法?C# VBox.ShowAll怎么用?C# VBox.ShowAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VBox
的用法示例。
在下文中一共展示了VBox.ShowAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ChessGameInfoWidget
public ChessGameInfoWidget()
{
box = new VBox ();
titleLabel = new Label ();
titleLabel.UseMarkup = true;
resultLabel =
new Label (Catalog.
GetString
("<b>Result</b>"));
resultLabel.UseMarkup = true;
dateLabel =
new Label (Catalog.
GetString ("<b>Date</b>"));
dateLabel.UseMarkup = true;
eventLabel =
new Label (Catalog.
GetString
("<b>Event</b>"));
eventLabel.UseMarkup = true;
siteLabel =
new Label (Catalog.
GetString ("<b>Site</b>"));
siteLabel.UseMarkup = true;
resultValueLabel = new Label ();
dateValueLabel = new Label ();
eventValueLabel = new Label ();
siteValueLabel = new Label ();
titleLabel = new Label ();
titleLabel.UseMarkup = true;
Table table = new Table (5, 2, false);
uint row = 0;
table.Attach (titleLabel, 0, 2, row,
row + 1);
titleLabel.Xalign = 0;
row++;
table.Attach (resultLabel, 0, 1, row,
row + 1);
resultLabel.Xalign = 0;
table.Attach (resultValueLabel, 1, 2, row,
row + 1);
resultValueLabel.Xalign = 0;
row++;
table.Attach (dateLabel, 0, 1, row,
row + 1);
dateLabel.Xalign = 0;
table.Attach (dateValueLabel, 1, 2, row,
row + 1);
dateValueLabel.Xalign = 0;
row++;
table.Attach (eventLabel, 0, 1, row,
row + 1);
eventLabel.Xalign = 0;
table.Attach (eventValueLabel, 1, 2, row,
row + 1);
eventValueLabel.Xalign = 0;
row++;
table.Attach (siteLabel, 0, 1, row,
row + 1);
siteLabel.Xalign = 0;
table.Attach (siteValueLabel, 1, 2, row,
row + 1);
siteValueLabel.Xalign = 0;
ScrolledWindow win = new ScrolledWindow ();
win.HscrollbarPolicy = PolicyType.Automatic;
win.VscrollbarPolicy = PolicyType.Never;
win.AddWithViewport (table);
box.PackStart (win, false, false, 2);
otherTagsWidget =
new Expander (Catalog.
GetString
("Other details"));
box.PackStart (otherTagsWidget, false,
false, 2);
box.ShowAll ();
Child = box;
}