Because the font.Style property is a "set" you must enclose the value in []
So
memo1.font.style := [fsBold];
or
memo1.font.style := [fsBold, fsItalic];
or
memo1.font.style := memo1.font.style + [fsBold];
or
memo1.font.style := memo1.font.style - [fsBold];
Chris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Joel van Velden
Sent: Monday, 20 December 1999 15:34
To: Multiple recipients of list delphi
Subject: [DUG]: Style
Just a beginners question:
How do you change (using code) a memo's style properties.
memo1.font.style := fsBold;
doesn't work.
There is probably something im overlooking here.
Thanks in advance.
---------------------------------------------------------------------------
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