Re: [gtkmm] How can I obtain index of selection? (Gtk::Combo)
- From: "Daniel J. Lauk" <Daniel Lauk Student FH-Reutlingen de>
- To: murrayc murrayc com, cjnygard fast net, daniel lauk Student FH-Reutlingen de, gtkmm-list gnome org
- Cc:
- Subject: Re: [gtkmm] How can I obtain index of selection? (Gtk::Combo)
- Date: Thu, 30 Sep 2004 13:03:09 +0200
>>> The index then is available via a call to
>>> my_map[my_combo->get_entry()->get_text()].
>>
>> You can also make a non-viewable column for the index, and set that as
>> you append items. It's always retrievable from the selected row, and
>> you don't have to maintain a map.
>
>He's talking about the deprecated Gtk::Combo widget, but I think you are
>talking about the new Gtk::ComboBox widget. With the ComboBox you would
>probably want to use the TreeModel::iterator instead of an index anyway.
Murray is right, I am talking about the deprecated Gtk::Combo, just like the
subject line says ;-)
Please correct me, if I err, but in gtkmm-2.2 there is no Gtk::ComboBox, right?
At least I couldn't find it...
Best regards,
DJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]