From fa6fa47793a673f1eed5eea202b2f95975f8fc2f Mon Sep 17 00:00:00 2001 From: John Luke Date: Wed, 6 Aug 2003 19:17:19 +0000 Subject: [PATCH] 2003-08-06 John Luke * en/Gtk/Notebook.xml: add example, see references svn path=/trunk/gtk-sharp/; revision=17138 --- doc/ChangeLog | 4 ++ doc/en/Gtk/Notebook.xml | 154 +++++++++++++++++++++++++--------------- 2 files changed, 101 insertions(+), 57 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 22b3533c9..f370780e8 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-06 John Luke + + * en/Gtk/Notebook.xml: add example, see references + 2003-08-06 Xavier Amado * /en/Gtk/Notebook.xml: documented the CurrentPageWidget property diff --git a/doc/en/Gtk/Notebook.xml b/doc/en/Gtk/Notebook.xml index fd610bada..39d3bf90a 100644 --- a/doc/en/Gtk/Notebook.xml +++ b/doc/en/Gtk/Notebook.xml @@ -30,6 +30,46 @@ any flicker caused by widget relayout by the application. + + +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 (); + } +} + + Gtk.Container @@ -288,8 +328,8 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type To be added @@ -332,10 +372,10 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'bool' - To be added: an object of type 'bool' - To be added: an object of type 'Gtk.PackType' + an object of type + an object of type + an object of type + an object of type To be added @@ -350,8 +390,8 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type To be added @@ -366,8 +406,8 @@ To be added - To be added: an object of type 'int' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type To be added @@ -383,8 +423,8 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'string' + an object of type + an object of type To be added @@ -400,8 +440,8 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type To be added @@ -430,9 +470,9 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type + an object of type To be added @@ -448,8 +488,8 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type To be added @@ -467,10 +507,10 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'bool' - To be added: an object of type 'bool' - To be added: an object of type 'Gtk.PackType' + an object of type + an object of type + an object of type + an object of type To be added @@ -508,9 +548,9 @@ - To be added - To be added: an object of type 'Gtk.Notebook' - To be added + Creates a new object. + an object of type + This is the default constructor for . @@ -520,8 +560,8 @@ System.UInt32 - The GLib Type for Gtk.Notebook - The GLib Type for the Gtk.Notebook class. + The for + The for the class. @@ -534,8 +574,8 @@ To be added - To be added: an object of type 'int' - To be added: an object of type 'int' + an object of type + an object of type To be added @@ -548,8 +588,8 @@ To be added - To be added: an object of type 'bool' - To be added: an object of type 'bool' + an object of type + an object of type To be added @@ -562,8 +602,8 @@ To be added - To be added: an object of type 'bool' - To be added: an object of type 'bool' + an object of type + an object of type To be added @@ -576,8 +616,8 @@ To be added - To be added: an object of type 'bool' - To be added: an object of type 'bool' + an object of type + an object of type To be added @@ -590,8 +630,8 @@ To be added - To be added: an object of type 'uint' - To be added: an object of type 'uint' + an object of type + an object of type To be added @@ -604,8 +644,8 @@ To be added - To be added: an object of type 'bool' - To be added: an object of type 'bool' + an object of type + an object of type To be added @@ -618,8 +658,8 @@ To be added - To be added: an object of type 'uint' - To be added: an object of type 'uint' + an object of type + an object of type To be added @@ -632,8 +672,8 @@ To be added - To be added: an object of type 'uint' - To be added: an object of type 'uint' + an object of type + an object of type To be added @@ -646,8 +686,8 @@ To be added - To be added: an object of type 'int' - To be added: an object of type 'int' + an object of type + an object of type To be added @@ -660,8 +700,8 @@ To be added - To be added: an object of type 'Gtk.PositionType' - To be added: an object of type 'Gtk.PositionType' + an object of type + an object of type To be added @@ -674,8 +714,8 @@ To be added - To be added: an object of type 'bool' - To be added: an object of type 'bool' + an object of type + an object of type To be added @@ -773,10 +813,10 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'int' + an object of type + an object of type + an object of type + an object of type To be added @@ -792,8 +832,8 @@ To be added - To be added: an object of type 'Gtk.Widget' - To be added: an object of type 'Gtk.Widget' + an object of type + an object of type To be added @@ -833,7 +873,7 @@ Obtains the widget that represents the current page. - The Gtk.Widget object in the current page. + The object in the current page. This property uses and together to