diff --git a/doc/ChangeLog b/doc/ChangeLog index 37bb07eb1..89e2719f1 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,11 @@ +2003-07-27 John Luke + + * en/Gtk/CheckButton.xml: add small example, update + + * en/Gtk/TreeModelFlags.xml: + * en/Gtk/RcFlags.xml: more documentation from + Jonathan Kessler . + 2003-07-26 Duncan Mak * en/Gtk/Orientation.xml: diff --git a/doc/en/Gtk/CheckButton.xml b/doc/en/Gtk/CheckButton.xml index 2ec2a998f..aae6e2d92 100644 --- a/doc/en/Gtk/CheckButton.xml +++ b/doc/en/Gtk/CheckButton.xml @@ -7,12 +7,64 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - A GtkCheckButton places a discrete GtkToggleButton next to a widget. + A places a discrete next to a widget. - A GtkCheckButton places a discrete next to a widget, usually a . See for more information about toggle/check buttons. + A places a discrete next to a widget, usually a . See for more information about toggle/check buttons. + + +using System; +using Gtk; +using GtkSharp; + +class CheckButtonSample +{ + CheckButton cb; + + static void Main () + { + new CheckButtonSample (); + } + + CheckButtonSample () + { + Application.Init (); + + Window win = new Window ("CheckButtonSample"); + win.DeleteEvent += new DeleteEventHandler (OnWinDelete); + + VBox vbox = new VBox (true, 1); + win.Add (vbox); + + cb = new CheckButton ("Checked"); + cb.Toggled += new EventHandler (OnCheckToggled); + vbox.Add (cb); + + win.ShowAll (); + Application.Run (); + } + + void OnCheckToggled (object obj, EventArgs args) + { + if (cb.Label == "Checked") + { + cb.Label = "Unchecked"; + } + else + { + cb.Label = "Checked"; + } + } + + void OnWinDelete (object obj, DeleteEventArgs args) + { + Application.Quit (); + } +} + + Gtk.ToggleButton @@ -40,13 +92,13 @@ Gtk.CheckButton - - + + - Creates a new CheckButton object with a label to the right of it. - The label displayed to the right of the CheckButton. - The newely created CheckButton. - Creates a new CheckButton object with a label to the + Creates a new object with a label to the right of it. + The label displayed to the right of the . + The newly created . + Creates a new object with a to the right of it @@ -67,12 +119,12 @@ Constructor - - + + Internal constructor Pointer to the C object. - An instance of CheckButton, wrapping the C object. + An instance of , wrapping the C object. This is an internal constructor, and should not be used by user code. @@ -85,7 +137,7 @@ Constructor - A new CheckButton + A new @@ -94,12 +146,12 @@ Constructor - - + + Constructor - A string for the label. - A new CheckButton with a label + A string for the . + A new with a @@ -110,8 +162,8 @@ System.UInt32 - The GLib Type for Gtk.CheckButton - The GLib Type for the Gtk.CheckButton class. + The for + The for the class. @@ -120,16 +172,16 @@ Constructor - - + + Internal constructor GLib type for the type - Creates a new instance of CheckButton, using the GLib-provided type + Creates a new instance of , using the GLib-provided type This is a constructor used by derivative types of that would have their own GLib type assigned to it. This is not typically used by C# code. - + \ No newline at end of file diff --git a/doc/en/Gtk/RcFlags.xml b/doc/en/Gtk/RcFlags.xml index 65f197727..8a13b28df 100644 --- a/doc/en/Gtk/RcFlags.xml +++ b/doc/en/Gtk/RcFlags.xml @@ -9,8 +9,8 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added - To be added + An enumeration that is used as a bitmask to specify which fields of have been set for each state. + System.Enum @@ -40,8 +40,8 @@ - To be added - To be added + If set, the foreground color has been set for this state. + @@ -52,8 +52,8 @@ - To be added - To be added + If set, the background color has been set for this state. + @@ -64,8 +64,8 @@ - To be added - To be added + If set, the text color has been set for this state. + @@ -76,8 +76,8 @@ - To be added - To be added + If set, the base color has been set for this state. + diff --git a/doc/en/Gtk/TreeModelFlags.xml b/doc/en/Gtk/TreeModelFlags.xml index 8287f53df..58586987f 100644 --- a/doc/en/Gtk/TreeModelFlags.xml +++ b/doc/en/Gtk/TreeModelFlags.xml @@ -7,8 +7,8 @@ Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - To be added - To be added + These flags indicate various properties of a . + These flags are returned through the property and must be static for the lifetime of the object. System.Enum @@ -34,8 +34,8 @@ - To be added - To be added + If set, iterators survive all signals emitted by the tree. + @@ -46,8 +46,8 @@ - To be added - To be added + If set, the model is a list only and never has children. +