Re: [gtkmm] Addressing a TreeView cell without using TreeModel
- From: Murray Cumming <murrayc usa net>
- To: igorbounov voronezh serw ru
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Addressing a TreeView cell without using TreeModel
- Date: 04 Jul 2003 11:13:12 +0200
On Fri, 2003-07-04 at 06:49, Igor Gorbounov wrote:
> Hi, All!
> I need a sheet-like table with programmatically changeable number of
> columns.
You need to create a new model for this, and use TreeView::set_model().
If you are changing the number of columns then you probably do want to
change all the data anyway, so this makes sense.
I do this in glom, with the added complication that the model column
_types_ are determined at runtime too. It's not all that pleasant but it
works.
> So I'm trying to do without any TreeModel, just adding TreeViewColumns with
> CellRendererTexts to my TreeView. But how can I add rows?
You mean you are adding TreeViewColumns that are not linked to any model
columns? I have never heard of that and I don't know if it should work.
You might ask on the GTK+ list about that kind of hackery. I'm not sure
what the point would be though.
> Well, I've tried an another approach: I've used a TreeModel with only one
> field - for the first column. So it is possible to add rows just like it
> is described
> in a tutorial. And it is possible to address the row needed, too. But
> only for
> this first column. Is there any way to address the cells, that are
> beyond the
> TreeModel, cells, that are just added as a TreeViewColumns
> (TreeView->append_column("Header", CellRenderer)?
> And then, is there any way to fixate the first column while scrolling
> horizontally?
> Hopefully,
> Igor Gorbounov
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
Murray Cumming
murray usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]