RE: [gtkmm] TreeView different colors for even and odd rows



> From: Karol Stachurski [mailto:stahu info dhs org] 
> As in the topic, is it possible ? I've got TreeView with 3 
> columns, and
> I want odd rows have red backgound and even rows have blue.
> What is the simpliest solution ?

I think people do this by using an extra model column with the appropriate
color as data in each row, and connecting that column to the CellRenders'
background. Our demo might do it, but if not, it's a common technique.

I suspect that _GTK+_ 2.4 will have a better way to do this. It should
probably be in bugzilla if it's not already..

Murray Cumming
murrayc usa net
www.murrayc.com 



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