Re: GtkCombo
| From: | Andrei Zmievski | Date: | Mon, 14 May 2001 17:38:58 +0000 |
| Subject: | Re: GtkCombo | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1837@lists.php.net to get a copy of this message | ||
On Sun, 13 May 2001, Leroy 'Beau' Hall wrote:
> 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.
Can you provide a self-contained short sample that illustrates the
problem?
-Andrei
Complexity in the mind is not caused by learning;
learning is caused by complexity in the mind.
-- Steven Pinker