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



B.Hakvoort wrote:

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 ?
Just try it once, and you will find it pretty easy.
examples/cellrenderercustom/ directory contains good example for you - how to implement custom cellrenderer just from base class. Also, you should to examine GTKMM/GTK source codes for cellrenderertext.cc and gtkcellrenderertext.c and see how to draw colored cell.

But, if you are so lazy, go and use CellRendererPixmap - that will be simplest way. :)

Any insights are appreciated.




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