Re: Gtk::ComboBox



There is an example almost exactly like this in the tutorial:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch09.html#id2522898

Does that help?
Jonner

On 2/1/06, Alexander <rope-walker yandex ru> wrote:
> Please elp with using Gtk::ComboBox;
> I do such in TreeView:
>
> refptrliststore = Gtk::ListStore::create(tablemodel);
> combobox.set_model(refptrliststore);
>
> Gtk::TreeModel::iterator iter = refptrliststore->append();
> Gtk::TreeModel::Row row = *(iter);
>
> row[tablemodel.column1] = 1;
> row[tablemodel.column2] = "asdfasdas";
>
> but after that there is no data, but only clear rows.
>
> In TreeView i use append_column() metod. What i have to use
> to add columns to ComboBox.
>
> Maybe you get some example?
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>



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