The problem is that the style is a set, so you must put it like :
memo1.font.style := [fsbold];
You could also do :
memo1.font.style := [fsBold, fsItalic];
To make it bold italic.
Cool huh!
-----Original Message-----
From: Joel van Velden [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 20, 1999 03:34 PM
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.
"WorldSecure <sovereign.co.nz>" made the following
annotations on 12/20/99 15:40:09
------------------------------------------------------------------------------
[INFO] -- Content Manager:
This e-mail message and any attachments are confidential to Sovereign Limited and
subsidiaries and subject to legal privilege. If you have received this e-mail in
error, please advise the sender immediately and destroy the message and any
attachments. If you are not the intended recipient you are notified that any use,
distribution, amendment, copying or any action taken or omitted to be taken in
reliance of this message or attachments is prohibited.
==============================================================================
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz