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(sftreeitemtextnorma‌​l, clblack)  else    tcustomstyleext(tstylemanager.activestyle).setstylefontcolor(sftreeitemtextnorma‌​l, afontcolor);  targetcanvas.fillrect(cellrect);  

with can change font color.

laurent


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -