Re: [gtkmm] treeview problem
- From: erwan ancel <erwan ancel free fr>
- To: Matthew Walton <matthew alledora co uk>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] treeview problem
- Date: 09 Dec 2003 16:28:10 +0100
Well, that's what I wanted to do: rewrite my own cellrenderer.
But what should I do to make my own cellrenderer? Is it only in
redefining those methods (the documentation doesn't tell anything about
them):
virtual void render_vfunc();
virtual bool activate_vfunc();
virtual Gtk::CellEditable* start_editing_vfunc();
Le mar 09/12/2003 à 16:13, Matthew Walton a écrit :
> erwan ancel wrote:
>
> >Hi everyone,
> >
> >I have an issue with a treeview: I just use is as a list, but one column
> >of this list is special: I need to display different widgets on lines.
> >for example, line one must be text, line 2 a toggle, and line 3 a
> >picture.
> >Is this possible ? I am looking at the CellRenderer object, but it seems
> >to be customisable for editing the cell (that I also need), but not for
> >just displaying it.
> >
> >
> CellRenderers are assigned by column rather than by row, so it's not
> possible to have a different kind of CellRenderer in each row displayed
> by a TreeView in a particular column.
>
> However, such a thing would probably be possible if you wrote your own
> CellRenderer class which wrapped itself around the existing ones, or
> mimicked their functionality, so that you could achieve the same effect.
> Unfortunately there is no way to achieve such an effect with TreeView
> without writing your own CellRenderer.
>
> Alternatively, you could try constructing a scrollable widget containing
> a Gtk::Table and using that instead, but obviously that presents
> completely different challenges and may not be at all suitable.
>
> Regards
>
> Matthew
>
> _______________________________________________
> 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]