What I do is put the information into a label. Then the user can't
change it and you have full control over the font colour etc.  Drop it
onto a panel if you want to give it a border - and you can change the
border style to whatever you want. You can make it look just like a
TEdit.

Regards,
       Brendan.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of John Dammeyer
Sent: 16 December 2005 01:11
To: 'Borland's Delphi Discussion List'
Subject: Protecting Tedit Field.

Hi all,

I've got a Tedit field that I want to use to display status information
(with a coloured font) but I don't want a user to be able to actually
click
on it and change it.  I can set enabled to FALSE but then windows greys
out
the text and makes it hard to read.  I set the readonly field and I can
still click on it and change the text.

How can I make it so I get coloured text but that it behaves like
enabled is
set to false?

Thanks.

John Dammeyer


Wireless CAN with the CANRF module now available.
http://www.autoartisans.com/products
Automation Artisans Inc.
Ph. 1 250 544 4950

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to