Thanks to all for your help. I did look at the Delphi 5 help but there is no mention that you need to surround the style types with brackets.
Tom Nesler -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Blake Sent: Thursday, July 26, 2007 2:59 AM To: 'Borland's Delphi Discussion List' Subject: RE: Changing a canvas's Style property to Bold and back You need to specify Image.Canvas.Font.Style:= [fsBold]; Font styles are a set, this is so you can combine one or more styles - look up TFont.Style in the Help. Regards, Brendan. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nesler, Thomas J Sent: 25 July 2007 21:05 To: Borland's Delphi Discussion List Subject: 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 _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

