Re: [gtkmm] treeview --- custom celrenderer..



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.heavenisopen.com <-----Another Source




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]