Re: [gtkmm] treeview/liststore cellrenderer color <-> background color of a single cell?



On Sat, 2004-09-18 at 16:40 +0200, Florian Schmidt wrote:
> hi,
> 
> i want a single cell (not the whole column) to have another background 
> color.
> 
> at the moment i use TreeViewColumn::set_cell_data_func() to specify a
> custom column-renderer-function.

That's a good way to do this.

> while rendering this function gets called for each row.
> 
> if i set the background() property of the CellRendererText i'm using,
> on the row i want to change the color from, the hole column gets this color.
> 
> i understand that result, but i have no idea how to get a different
> background color for a single cell (in a distinct row a distinct column).

This seems to work for other people. I suggest that you make a small
test case, so that you or someone can find the error in your code.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





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