[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: question about gtk.ComboBoxEntry

Martin Portman

8/8/2007 1:08:00 PM

shawn bright wrote:
> i cannot seem to find how to set the active text in a gtk.ComboBoxEntry.
> i can populate it with a list of items using the append_text(item) method.
> but i cannot seem to find how to actually set the item i want to be active.

look in the superclass:
Gtk::ComboBox.set_active( index )

but you have to work out index yourself, rather than passing in
the text item.

ruby-gnome2 has its own mailing list which is more suited for
questions like this:
https://lists.sourceforge.net/lists/listinfo/ruby-gnome...

martin.