Re: [gtkmm] treeview --- custom celrenderer..
- From: "B.Hakvoort" <bart hakvoort be>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] treeview --- custom celrenderer..
- Date: Wed, 29 Sep 2004 16:10:37 +0200
Wow, i've been reading up on custom cellrenderers, but this seems to be
a bit overkill for my situation.
Are you guys/gals sure there isn't a more efficient way to draw a small,
stupid colorsquare in a cell ?
Any insights are appreciated.
Bart
On Mon, 2004-09-27 at 15:12, B.Hakvoort wrote:
> Thanks for the responses!
> I'll start working on/with them as soon as i have time.
>
> Bart
>
> On Mon, 2004-09-27 at 13:19, Andrew E. Makeev wrote:
> > I'd suggest the following implementation for column "Type" that you've
> > reffered:
> >
> > 1. Write custom CellRenderer, where you'd just paint colored square:
> > - reimplement get_size_vfunc - to set size of your color cell;
> > - reimplement render_vfunc - to draw the square (Gdk::Drawable has
> > lot of functions you may wish to use for that - draw_rectangle(), for
> > instance).
> > 2. Create TreeView::Column and pack there 2 CellRenderers: Custom + Text.
> > 3. Link Custom CellRenderer attribute (property) that will handle color
> > selection with Text Cellrenderer value or hidded column.
> >
--
www.titanium-it.nl --- Open Minded Open Source
www.real-life.nl <-----Another Source
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]