You forgot the brackets around fsBold. If SpBtnBold.Down then Image.Canvas.Font.Style := [fsBold];
Roger -----Opprinnelig melding----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Nesler, Thomas J Sendt: 25. juli 2007 22:05 Til: Borland's Delphi Discussion List Emne: Changing a canvas's Style property to Bold and back 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? Thanks in advance! Tom Nesler _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

