Contributions/Patch from cesar2879@yahoo.com

svn path=/trunk/gtk-sharp/; revision=49936
This commit is contained in:
Miguel de Icaza 2005-09-12 06:32:05 +00:00
parent 6a4b03d57f
commit 5431d8f69a
2 changed files with 68 additions and 4 deletions

View File

@ -8,7 +8,40 @@
</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>
<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>
<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>
@ -94,4 +127,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>

View File

@ -8,7 +8,38 @@
</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>
<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>
<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>
@ -94,4 +125,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>