Um I think it's a set... TFontStyle is the enumeration and TFontStyles is the set of 
that
enumeration.  So you need to add fsBold to the set of selected styles.

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

I think there is an include notation include(ToAll1.Font.Style,fsBold);
but this only works with immediate (non property) operands (IIRC)...

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
-----Original Message-----
From: Alistair George <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Wednesday, 31 March 1999 09:22
Subject: [DUG]: Tbitbtn.Font.Style:=fsBold;


When I apply the above as
ToAll1.Font.Style:=fsBold;
I get a compiler error: incompatible types: Tfontstyles and Tfontstyle
Whats the story??
thanks,
Alistair+
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to