[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: Adding Columns to Gtk::TreeView
From:       "Murray Cumming" <murrayc () murrayc ! com>
Date:       2006-07-31 11:03:20
Message-ID: 43148.194.138.18.131.1154343800.squirrel () webmail ! murrayc ! com
[Download RAW message or body]


> Hi all,
> I'm writing an application, where in  I need to add columns to a TreeView.
> But the catch is those columns will be added at the run time. The other
> thing is i dont know how many columns I'd be adding during run time.
>
> But I know what type of columns i'd be adding (say string/boolean/pixbuf
> etc). Can this be done using the current API. If so how?

You can dynamically create Gtk::TreeModelColumn<ustring/bool/pixbuf>
objects and dynamically add them to your Gtk::TreeModel::ColumnRecord
object. Then just use that ColumnRecord at runtime.

Murray Cumming
murrayc@murrayc.com
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic