[Lazarus] DBGrid highlighting certain cells

Jesus Reyes jesusrmx at yahoo.com.mx
Fri Jan 22 19:49:25 CET 2010



--- El vie 22-ene-10, Andrea Mauri <andrea.mauri.75 at gmail.com> escribió:

> I use OnPrepareCanvas in order to change color background
> and fonts of a grid. I encunter a problem with the font. I
> can set the font color but the Bold property does not work,
> any hint?
> this is the code:
> 
> Canvas.Font.Bold:= True;
> Canvas.Font.Color:= clSkyBlue;
> 
> The font are correctly drawn in clSkyBlue but are not set
> to bold.
> andrea
> 

Strange but I confirmed the problem, if you use:

Canvas.Font.Style := Canvas.Font.Style + [fsBold];

it works, will try to find why is not working.

Jesus Reyes A.


      Encuentra las mejores recetas en Yahoo! Cocina.                       
http://mx.mujer.yahoo.com/cocina/




More information about the Lazarus mailing list