--- El vie 22-ene-10, Andrea Mauri <[email protected]> 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/

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to