Nesler, Thomas J wrote:
> Hello!
>  
> I am creating a simple paint program for an application.  I need to be
> able to turn on and off the Bold property of the font.
>  
> Here is my code:
>  
> If SpBtnBold.Down then Image.Canvas.Font.Style := fsBold ;
>  
> When doing a syntax check I get this error message:
>  
> [Error] GraphWin.pas(356): Incompatible types: 'TFontStyles' and
> 'TFontStyle'
>  
> What am I doing wrong?
>  
> Also, looking in the help text I see the style fsBold but I don't know
> how to 'UnBold' my font.  What should I use to reverse this style?
>   

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

David...

-- 
___________________________________________
David Duffy        Audio Visual Devices P/L
Unit 8, 10 Hook St, Capalaba 4157 Australia
Ph: +61 7 38235717      Fax: +61 7 38234717
Our Web Site: www.audiovisualdevices.com.au
___________________________________________

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to