[Gtk-sharp-list] A Searchable ComboBox

Chris Wilson blixtra at gmail.com
Thu Apr 13 07:03:57 EDT 2006


I was a bit dissapointed to find out that ComboBoxes aren't able
search while one types. This is a quite important function when you
have a Combobox with a couple hundred entries, for example a list of
all the currencies in the world.

So I made a subclassed of ComboBox with this feature called
SearchableComboBox and thought maybe it would be useful for others.
The class is attached.

It takes the column of the Model (ListStore) to search. It only
searches letters (no digits, punctuation or white space) and the
search buffer is cleared after a 1.5 second delay.

Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SearchableComboBox.cs
Type: text/x-csharp
Size: 1937 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060413/276bc29a/SearchableComboBox.bin


More information about the Gtk-sharp-list mailing list