RE: [gtkmm] Question to GTKmm widgets (can I do this with GTKmm?)
- From: Murray Cumming Comneon com
- To: olau hardworking dk, gtkmm-list gnome org
- Subject: RE: [gtkmm] Question to GTKmm widgets (can I do this with GTKmm?)
- Date: Mon, 5 Jan 2004 11:52:12 +0100
> > The problem I am facing now is that my column data is dynamic. (It
> > does not change while the program is running, though).
>
> I've never tried this, but can't you just use an array? For example:
>
> public:
> std::vector<Gtk::TreeModelColumn<Glib::ustring> > cols;
>
> ModelColumns(int no)
> {
> for (int i = 0; i < no; ++i) {
> cols.push_back(Gtk::TreeModelColumn<Glib::ustring>());
> add(cols.back());
> }
> }
>
> I'm not sure whether it works, though.
Yes, that works. I do that in glom, for instance.
> The interface for the
> treeview classes is very confusing.
I'll be checking in lots of TreeView reference documentation today.
Murray Cumming
www.murrayc.com
murrayc usa net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]