Whoops - sent before I'd given the full picture....
Set ReadOnly to True! Or....
What I also 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 one
or more such labels onto a panel if you want to have a border - and you
can change the border style to whatever you want. You can make it look
just like a TEdit. My guess is that this takes less resources as well.
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