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

Since it's a set you can add 2 styles together.

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

And then remove only the underline...

ToAll1.Font.Style:= ToAll1.Font.Style - [fsUnderline];

To remove any at all you can use

ToAll1.Font.Style:= [];

Which is an empty set

--
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 10:01
Subject: [DUG]: font.style


Hey thanks guys!
Now its going; help doesnt say anything about changing it BACK from bold to
regular so help me!
The following wont work:
ToAll1.Font.Style:= [fsRegular];

---------------------------------------------------------------------------
    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