RE: [PHP-GTK] GtkCombo

From: Date: Sun, 13 May 2001 21:56:10 +0000
Subject: RE: [PHP-GTK] GtkCombo
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1826@lists.php.net to get a copy of this message
Yes, I know you can do use the function method set_popdown_strings. That works fine, but I would like to attach a piece of data to each popdown list item. I'm new to GTK so I may not be going about this the right way. From reading the GTK documentation it looked like the best way to do this was to add ListItems to the GtkList in the combo. Specificly, I want to display a drop down list item that has a list of names but I would like to associate the id of the item in the database to the name. The names are not unique so I can't just look for the name that is selected. I tried using combo->list->add(item) but this didn't work. Thanks, Beau

« previous php.gtk (#1826) next »