Re: EuGTK - GtkListStore - color?
- Posted by irv Sep 19, 2010
- 1421 views
OK!
I have, with only 12 hours work, figured out how to make colored rows and/or columns, change fonts, etc. in ListViews. It's easy - for you. Simple one-liners like this will work:
setCol(3,tv,lv,"background",BCOLOR) -- get color from this cell in store setCol(2,tv,lv,"foreground",FCOLOR) setCol(2,tv,lv,"background","#FF00FF") setRow({2,3},tv,lv,"background","pink") -- use color name setRow({1,4},tv,lv,"font",FONT) -- use font from cell in store setRow(2,tv,lv,"font","Georgia Bold 16") setCol(3,tv,lv,"background","gray")
Screenshot WikiSpaces SourceForge EuGTK
Download EuGTK_4.2.2 from any of the sites listed above that you can get to, and try it out.