Re: [gtkmm] How can I obtain index of selection? (Gtk::Combo)



Hi.

In case it is of interest to anybody: For the time being I use the following
workaround:
I keep a private std::map<Glib::ustring, int> and when I set up the combo box
items I also feed each item and its index to the map.

The index then is available via a call to my_map[my_combo->get_entry()->get_text()].


Best regards,

DJ




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]