gtk-sharp0.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.A text entry field with a dropdown list
The GtkCombo 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 GtkList widget and can be accessed using the
list member of the GtkCombo. List elements can contain arbitrary
widgets, but if an element is not a plain label, then you must use
the gtk_list_set_item_string() 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
gtk_combo_set_use_arrows().
Creating a GtkCombo widget with simple text items:
Gtk.Combo MakeCombo () {
GLib.List l = new GLib.List (IntPtr.Zero, typeof(string));
l.Append(Marshal.StringToHGlobalAnsi("String 1"));
l.Append(Marshal.StringToHGlobalAnsi("String 2"));
Gtk.Combo combo = new Gtk.Combo
(new GLib.Type((uint)TypeFundamentals.TypeString));
combo.PopdownStrings = l;
return combo;
}
See for more about GLib.List.
Gtk.HBoxAtk.ImplementorGLib.IWrapperGLib.IWrapperSystem.IDisposableMethodSystem.VoidConvenience function to set all of the items in the popup list.
To be added: an object of type 'string []'
To be addedMethodSystem.VoidSets the string to place in the Gtk.Entry field when a particular list item is selected. This is needed if the list item is not a simple label.
To be added: an object of type 'Gtk.Item'
To be added: an object of type 'string'
To be addedMethodSystem.VoidStops the Gtk.Combo widget from showing the popup list when the Gtk.Entry emits the "activate" signal, 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.To be addedMethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
Pointer to the C object.
An instance of Combo, wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorCreates a new Combo.To be added: an object of type 'Gtk.Combo'To be addedPropertySystem.UInt32The GLib Type for Gtk.ComboThe GLib Type for the Gtk.Combo class.PropertyGtk.ButtonThe Button asociated with the Combo.To be added: an object of type 'Gtk.Button'To be addedPropertyGtk.EntryThe Entry asociated with the Combo.To be added: an object of type 'Gtk.Entry'To be addedPropertyGLib.ListProperty to set all of the items in the popup list.
To be added: an object of type 'GLib.List'
To be added: an object of type 'GLib.List'To be addedPropertySystem.BooleanDoes nothing. ---- To get out ----
To be added: an object of type 'bool'
To be added: an object of type 'bool'To be addedPropertySystem.BooleanSpecifies if the arrow (cursor) keys can be used to step through the items in the list.
To be added: an object of type 'bool'
TRUE if the arrow keys can be used to step through the items in the list.This is on by default.PropertySystem.BooleanTo be added
To be added: an object of type 'bool'
To be added: an object of type 'bool'To be addedPropertySystem.BooleanSpecifies whether the value entered in the text entry field 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.
TRUE if the value entered must match one of the values in the list.
TRUE if the value entered must match one of the values in the list.To be addedPropertySystem.BooleanSpecifies if an empty field is acceptable.
TRUE if an empty value is considered valid.
TRUE if an empty value is considered valid.To be addedPropertySystem.BooleanSpecifies if the arrow (cursor) keys can be used to step through the items in the list. This is true by default.
TRUE if the arrow keys can be used to step through the items in the list.
TRUE if the arrow keys can be used to step through the items in the list.To be addedPropertySystem.BooleanSpecifies whether the text entered into the Entry field and the text in the list items is case sensitive.
TRUE if the text in the list items is case sensitive.
TRUE 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.ConstructorInternal constructor
GLib type for the type
Creates a new instance of Combo, using the GLib-provided typeThis 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.