delphi - VirtualTreeView and VCL Styles -
i'm using virtualtreeview (as grid - in delphi xe7) in app , chose use carbon vcl style. problem arise because need color rows according status on each line, , font color keep staying white when use light color on line. impossible read data. when use iceberg classico style, issue not occurs.
so basically, can change set of rows color according style selected, 1 solution. i'm looking way modify font color according row color background?
i'm doing colorization code inside event: beforecellpaint , tried modify font color without success.
any idea?
i found library helps lot on subject:
// unit vcl styles utils // github.com/rruz/vcl-styles-utils targetcanvas.brush.color := acolor; if tstylemanager.activestyle.name = 'carbon' tcustomstyleext(tstylemanager.activestyle).setstylefontcolor(sftreeitemtextnormal, clblack) else tcustomstyleext(tstylemanager.activestyle).setstylefontcolor(sftreeitemtextnormal, afontcolor); targetcanvas.fillrect(cellrect);
with can change font color.
laurent
Comments
Post a Comment