Contributions/Patch from cesar2879@yahoo.com
svn path=/trunk/gtk-sharp/; revision=49936
This commit is contained in:
parent
6a4b03d57f
commit
5431d8f69a
2 changed files with 68 additions and 4 deletions
|
@ -8,7 +8,40 @@
|
||||||
</AssemblyInfo>
|
</AssemblyInfo>
|
||||||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>An HBox is a specific type of <see cref="T:Gtk.Container" /> for packing widgets horizontally.</summary>
|
<summary>An HBox is a specific type of <see cref="T:Gtk.Container" /> for packing widgets horizontally.
|
||||||
|
|
||||||
|
|
||||||
|
<example>
|
||||||
|
<code lang="C#">
|
||||||
|
using System;
|
||||||
|
using Gtk;
|
||||||
|
|
||||||
|
class HBoxTester {
|
||||||
|
|
||||||
|
static void Main ()
|
||||||
|
{
|
||||||
|
Application.Init ();
|
||||||
|
Window myWindow = new Window ("HBox Widget");
|
||||||
|
|
||||||
|
HBox myBox = new HBox (false, 4);
|
||||||
|
|
||||||
|
//Add some buttons to the horizontal box
|
||||||
|
AddButton (myBox);
|
||||||
|
AddButton (myBox);
|
||||||
|
|
||||||
|
//Add the box to a Window container
|
||||||
|
myWindow.Add (myBox);
|
||||||
|
myWindow.ShowAll ();
|
||||||
|
Application.Run ();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void AddButton (HBox box)
|
||||||
|
{
|
||||||
|
box.PackStart (new Button ("Button"), true, false, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
</example></summary>
|
||||||
<remarks>
|
<remarks>
|
||||||
<para>Other ways of laying out widgets include using a vertical box, (see <see cref="T:Gtk.VBox" />), a table, (see <see cref="T:Gtk.Table" />), button boxes, etc.</para>
|
<para>Other ways of laying out widgets include using a vertical box, (see <see cref="T:Gtk.VBox" />), a table, (see <see cref="T:Gtk.Table" />), button boxes, etc.</para>
|
||||||
<para>
|
<para>
|
||||||
|
@ -94,4 +127,4 @@
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
|
@ -8,7 +8,38 @@
|
||||||
</AssemblyInfo>
|
</AssemblyInfo>
|
||||||
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>A VBox is a specific type of <see cref="T:Gtk.Container" /> for packing widgets vertically.</summary>
|
<summary>A VBox is a specific type of <see cref="T:Gtk.Container" /> for packing widgets vertically.
|
||||||
|
<example>
|
||||||
|
<code lang="C#">
|
||||||
|
using System;
|
||||||
|
using Gtk;
|
||||||
|
|
||||||
|
class VBoxTester {
|
||||||
|
|
||||||
|
static void Main ()
|
||||||
|
{
|
||||||
|
Application.Init ();
|
||||||
|
Window myWindow = new Window ("VBox Widget");
|
||||||
|
|
||||||
|
VBox myBox = new VBox (false, 4);
|
||||||
|
|
||||||
|
//Add some buttons to the vertical box
|
||||||
|
AddButton (myBox);
|
||||||
|
AddButton (myBox);
|
||||||
|
|
||||||
|
//Add the box to a Window container
|
||||||
|
myWindow.Add (myBox);
|
||||||
|
myWindow.ShowAll ();
|
||||||
|
Application.Run ();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void AddButton (VBox box)
|
||||||
|
{
|
||||||
|
box.PackStart (new Button ("Button"), true, false, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
</example></summary>
|
||||||
<remarks>
|
<remarks>
|
||||||
<para>Other ways of laying out widgets include using a horizontal box, (see <see cref="T:Gtk.HBox" />), a table, (see <see cref="T:Gtk.Table" />), button boxes, etc.</para>
|
<para>Other ways of laying out widgets include using a horizontal box, (see <see cref="T:Gtk.HBox" />), a table, (see <see cref="T:Gtk.Table" />), button boxes, etc.</para>
|
||||||
<para>
|
<para>
|
||||||
|
@ -94,4 +125,4 @@
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
Loading…
Add table
Reference in a new issue