gtk-sharp 0.0.0.0 neutral Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. A text entry field with a dropdown list The widget consists of a single-line text entry field and a drop-down list. The drop-down list is displayed when the user clicks on a small arrow button to the right of the entry field. The drop-down list is a widget and can be accessed using the list member of the . List elements can contain arbitrary widgets, but if an element is not a plain label, then you must use the function. This sets the string which will be placed in the text entry field when the item is selected. By default, the user can step through the items in the list using the arrow (cursor) keys, though this behaviour can be turned off with = . Creating a widget with simple text items: using System; using System.Runtime.InteropServices; using Gtk; using GtkSharp; using GLib; class ComboSample { Combo combo; static void Main () { new ComboSample (); } ComboSample () { Application.Init (); Window win = new Window ("ComboSample"); win.DeleteEvent += new DeleteEventHandler (OnWinDelete); GLib.List l = new GLib.List (IntPtr.Zero, typeof (string)); for (int i =0; i < 5; i++) { l.Append ("String " + i); } combo = new Combo (); combo.PopdownStrings = l; combo.DisableActivate (); combo.Entry.Activated += new EventHandler (OnEntryActivated); win.Add (combo); win.ShowAll (); Application.Run (); } void OnEntryActivated (object o, EventArgs args) { Console.WriteLine (combo.Entry.Text); } void OnWinDelete (object obj, DeleteEventArgs args) { Application.Quit (); } } See for more about GLib.List. Gtk.HBox Atk.Implementor GLib.IWrapper GLib.IWrapper System.IDisposable Method System.Void Convenience function to set all of the items in the popup list. an object of type [] To be added Method System.Void Sets the string to place in the field when a particular list item is selected. an object of type an object of type This is not needed if the list item is a simple . Method System.Void Disables showing the popup list on the activate event. Stops the widget from showing the popup list when the emits the event, i.e. when the Return key is pressed. This may be useful if, for example, you want the Return key to close a dialog instead. Method System.Void Disposes the resources associated with the object. Constructor Internal constructor Pointer to the C object. An instance of , wrapping the C object. This is an internal constructor, and should not be used by user code. Constructor Creates a new . an object of type This is the default contructor for Property System.UInt32 The for The for the class. Property Gtk.Button The asociated with the . an object of type Property Gtk.Entry The asociated with the . an object of type Property GLib.List Property to set all of the items in the popup list. an object of type an object of type Property System.Boolean Does nothing. ---- To get out ---- To be added: an object of type 'bool' To be added: an object of type 'bool' To be added Property System.Boolean Specifies if the arrow (cursor) keys can be used to step through the items in the list. an object of type if the arrow keys can be used to step through the items in the list. This is on by default. Property System.Boolean To be added To be added: an object of type 'bool' To be added: an object of type 'bool' To be added Property System.Boolean Specifies whether the value entered in the text entry field must match one of the values in the list. if the value entered must match one of the values in the list. if the value entered must match one of the values in the list. If this is set then the user will not be able to perform any other action until a valid value has been entered. Property System.Boolean Specifies if an empty field is acceptable. if an empty value is considered valid. if an empty value is considered valid. To be added Property System.Boolean Specifies if the arrow (cursor) keys can be used to step through the items in the list. if the arrow keys can be used to step through the items in the list. if the arrow keys can be used to step through the items in the list. This is by default. Property System.Boolean Specifies whether the text entered into the field and the text in the list items is case sensitive. if the text in the list items is case sensitive. if the text in the list items is case sensitive. This may be useful, for example, when you have set true ValueInList to limit the values entered, but you are not worried about differences in case. Constructor Internal constructor GLib type for the type Creates a new instance of Combo, 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.