Página 1 de 1

Row coloring in Tbrowse

Publicado: Vie Sep 15, 2006 10:07 am
por Gejza Horvath
Hi,
how can I change the background/foreground color of the row (or column) in Tbrowse,
regarding the content of specified field in the browse? Something like Tbrowse:ColorSpec
and TbColumn:ColorBlock in Clipper.
Gejza

Row coloring in Tbrowse

Publicado: Vie Sep 15, 2006 12:36 pm
por jfgimenez
Gejza,
> how can I change the background/foreground color of the row (or column) in
> Tbrowse, regarding the content of specified field in the browse? Something
> like Tbrowse:ColorSpec and TbColumn:ColorBlock in Clipper.
If you want to paint the rows with 2 colours alternatively, you may use the
properties nClrPane and nClrAltPane. In other case, you have to use the
column's event OnDrawCell, and change the parameter nClrPane which is passed
by reference.
--
Regards,
Jose F. Gimenez
http://www.xailer.com