2003-08-06 John Luke <jluke@cfl.rr.com>
* en/Gtk/Notebook.xml: add example, see references svn path=/trunk/gtk-sharp/; revision=17138
This commit is contained in:
parent
6cef51c842
commit
fa6fa47793
2 changed files with 101 additions and 57 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-08-06 John Luke <jluke@cfl.rr.com>
|
||||||
|
|
||||||
|
* en/Gtk/Notebook.xml: add example, see references
|
||||||
|
|
||||||
2003-08-06 Xavier Amado <xavier@blackbloodstudios.com>
|
2003-08-06 Xavier Amado <xavier@blackbloodstudios.com>
|
||||||
|
|
||||||
* /en/Gtk/Notebook.xml: documented the CurrentPageWidget property
|
* /en/Gtk/Notebook.xml: documented the CurrentPageWidget property
|
||||||
|
|
|
@ -30,6 +30,46 @@
|
||||||
any flicker caused by widget relayout by the application.
|
any flicker caused by widget relayout by the application.
|
||||||
</para>
|
</para>
|
||||||
</remarks>
|
</remarks>
|
||||||
|
<example>
|
||||||
|
<code language="C#">
|
||||||
|
using System;
|
||||||
|
using Gtk;
|
||||||
|
using GtkSharp;
|
||||||
|
|
||||||
|
class NotebookSample
|
||||||
|
{
|
||||||
|
static void Main ()
|
||||||
|
{
|
||||||
|
new NotebookSample ();
|
||||||
|
}
|
||||||
|
|
||||||
|
NotebookSample ()
|
||||||
|
{
|
||||||
|
Application.Init ();
|
||||||
|
|
||||||
|
Window win = new Window ("NotebookSample");
|
||||||
|
win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
|
||||||
|
win.SetDefaultSize (400, 400);
|
||||||
|
|
||||||
|
Notebook nb = new Notebook ();
|
||||||
|
for (int i = 0; i < 5; i ++)
|
||||||
|
{
|
||||||
|
string label = String.Format ("Page {0}", i+1);
|
||||||
|
nb.AppendPage (new Button (label), new Label (label));
|
||||||
|
}
|
||||||
|
|
||||||
|
win.Add (nb);
|
||||||
|
win.ShowAll ();
|
||||||
|
Application.Run ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnWinDelete (object obj, DeleteEventArgs args)
|
||||||
|
{
|
||||||
|
Application.Quit ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</code>
|
||||||
|
</example>
|
||||||
</Docs>
|
</Docs>
|
||||||
<Base>
|
<Base>
|
||||||
<BaseTypeName>Gtk.Container</BaseTypeName>
|
<BaseTypeName>Gtk.Container</BaseTypeName>
|
||||||
|
@ -288,8 +328,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<returns>To be added: an object of type 'Gtk.Widget'</returns>
|
<returns>an object of type <see cref="T:Gtk.Widget" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -332,10 +372,10 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="expand">To be added: an object of type 'bool'</param>
|
<param name="expand">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<param name="fill">To be added: an object of type 'bool'</param>
|
<param name="fill">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<param name="pack_type">To be added: an object of type 'Gtk.PackType'</param>
|
<param name="pack_type">an object of type <see cref="T:Gtk.PackType" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -350,8 +390,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<returns>To be added: an object of type 'Gtk.Widget'</returns>
|
<returns>an object of type <see cref="T:Gtk.Widget" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -366,8 +406,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="page_num">To be added: an object of type 'int'</param>
|
<param name="page_num">an object of type <see cref="T:System.Int32" /></param>
|
||||||
<returns>To be added: an object of type 'Gtk.Widget'</returns>
|
<returns>an object of type <see cref="T:Gtk.Widget" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -383,8 +423,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="menu_text">To be added: an object of type 'string'</param>
|
<param name="menu_text">an object of type <see cref="T:System.String" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -400,8 +440,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="tab_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="tab_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -430,9 +470,9 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="tab_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="tab_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="menu_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="menu_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -448,8 +488,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="menu_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="menu_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -467,10 +507,10 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="expand">To be added: an object of type 'bool'</param>
|
<param name="expand">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<param name="fill">To be added: an object of type 'bool'</param>
|
<param name="fill">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<param name="pack_type">To be added: an object of type 'Gtk.PackType'</param>
|
<param name="pack_type">an object of type <see cref="T:Gtk.PackType" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -508,9 +548,9 @@
|
||||||
<ReturnValue />
|
<ReturnValue />
|
||||||
<Parameters />
|
<Parameters />
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>Creates a new <see cref="T:Gtk.Notebook" /> object.</summary>
|
||||||
<returns>To be added: an object of type 'Gtk.Notebook'</returns>
|
<returns>an object of type <see cref="T:Gtk.Notebook" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>This is the default constructor for <see cref="T:Gtk.Notebook" />.</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="GType">
|
<Member MemberName="GType">
|
||||||
|
@ -520,8 +560,8 @@
|
||||||
<ReturnType>System.UInt32</ReturnType>
|
<ReturnType>System.UInt32</ReturnType>
|
||||||
</ReturnValue>
|
</ReturnValue>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>The GLib Type for Gtk.Notebook</summary>
|
<summary>The <see cref="T:GLib.Type" /> for <see cref="T:Gtk.Notebook" /></summary>
|
||||||
<returns>The GLib Type for the Gtk.Notebook class.</returns>
|
<returns>The <see cref="T:GLib.Type" /> for the <see cref="T:Gtk.Notebook" /> class.</returns>
|
||||||
<remarks />
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -534,8 +574,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'int'</param>
|
<param name="value">an object of type <see cref="T:System.Int32" /></param>
|
||||||
<returns>To be added: an object of type 'int'</returns>
|
<returns>an object of type <see cref="T:System.Int32" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -548,8 +588,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'bool'</param>
|
<param name="value">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<returns>To be added: an object of type 'bool'</returns>
|
<returns>an object of type <see cref="T:System.Boolean" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -562,8 +602,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'bool'</param>
|
<param name="value">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<returns>To be added: an object of type 'bool'</returns>
|
<returns>an object of type <see cref="T:System.Boolean" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -576,8 +616,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'bool'</param>
|
<param name="value">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<returns>To be added: an object of type 'bool'</returns>
|
<returns>an object of type <see cref="T:System.Boolean" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -590,8 +630,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'uint'</param>
|
<param name="value">an object of type <see cref="T:System.UInt32" /></param>
|
||||||
<returns>To be added: an object of type 'uint'</returns>
|
<returns>an object of type <see cref="T:System.UInt32" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -604,8 +644,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'bool'</param>
|
<param name="value">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<returns>To be added: an object of type 'bool'</returns>
|
<returns>an object of type <see cref="T:System.Boolean" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -618,8 +658,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'uint'</param>
|
<param name="value">an object of type <see cref="T:System.UInt32" /></param>
|
||||||
<returns>To be added: an object of type 'uint'</returns>
|
<returns>an object of type <see cref="T:System.UInt32" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -632,8 +672,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'uint'</param>
|
<param name="value">an object of type <see cref="T:System.UInt32" /></param>
|
||||||
<returns>To be added: an object of type 'uint'</returns>
|
<returns>an object of type <see cref="T:System.UInt32" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -646,8 +686,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'int'</param>
|
<param name="value">an object of type <see cref="T:System.Int32" /></param>
|
||||||
<returns>To be added: an object of type 'int'</returns>
|
<returns>an object of type <see cref="T:System.Int32" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -660,8 +700,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'Gtk.PositionType'</param>
|
<param name="value">an object of type <see cref="T:Gtk.PositionType" /></param>
|
||||||
<returns>To be added: an object of type 'Gtk.PositionType'</returns>
|
<returns>an object of type <see cref="T:Gtk.PositionType" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -674,8 +714,8 @@
|
||||||
<Parameters></Parameters>
|
<Parameters></Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="value">To be added: an object of type 'bool'</param>
|
<param name="value">an object of type <see cref="T:System.Boolean" /></param>
|
||||||
<returns>To be added: an object of type 'bool'</returns>
|
<returns>an object of type <see cref="T:System.Boolean" /></returns>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -773,10 +813,10 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="tab_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="tab_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="menu_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="menu_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="position">To be added: an object of type 'int'</param>
|
<param name="position">an object of type <see cref="T:System.Int32" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -792,8 +832,8 @@
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>To be added</summary>
|
<summary>To be added</summary>
|
||||||
<param name="child">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="child">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<param name="tab_label">To be added: an object of type 'Gtk.Widget'</param>
|
<param name="tab_label">an object of type <see cref="T:Gtk.Widget" /></param>
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
@ -833,7 +873,7 @@
|
||||||
</ReturnValue>
|
</ReturnValue>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Obtains the widget that represents the current page.</summary>
|
<summary>Obtains the widget that represents the current page.</summary>
|
||||||
<returns>The Gtk.Widget object in the current page.</returns>
|
<returns>The <see cref="T:Gtk.Widget" /> object in the current page.</returns>
|
||||||
<remarks>
|
<remarks>
|
||||||
<para>
|
<para>
|
||||||
This property uses <see cref="P:Gtk.Notebook.CurrentPage" /> and <see cref="M:Gtk.Notebook.GetNthPage" /> together to
|
This property uses <see cref="P:Gtk.Notebook.CurrentPage" /> and <see cref="M:Gtk.Notebook.GetNthPage" /> together to
|
||||||
|
|
Loading…
Add table
Reference in a new issue