The 'save' issue is one I remember discovering myself, probably on V4 (maybe 5). I did report it to Borland as a bug. What ver. are you using?
> Hi all, > > Thanks for the replies. In fact, setting the field to read-only and the > font colour to red does work. However, it doesn't work if the I don't save > all the files before doing a build. > > I just tried that again to verify. > > 1. Set field.enabled to false. > 2. save all files and the build. > 3. run app. Field is dimmed and disabled. > 4. exit app and set field.enabled to true. > 5. build app > 6. run app. Field is still dimmed and disabled. > 7. exit app and save all > 8. build app > 9. run app. Field is enabled. > > Same holds true for read-only. User can no longer change it but a save all > is required. Didn't know that. > > John Dammeyer > > > > > > > > You definately cannot change the text in a TEdit if it's set to > > read-only. You can highlight text and copy to clipboard, however. > > What's wrong with a Label? I use colored labels. > > > > Ross. > > > > ----- Original Message ----- > > From: "John Dammeyer" <[EMAIL PROTECTED]> > > To: "'Borland's Delphi Discussion List'" <[email protected]> > > Sent: Friday, December 16, 2005 2:10 PM > > 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 > > > > _______________________________________________ > > Delphi mailing list -> [email protected] > > http://www.elists.org/mailman/listinfo/delphi > > > > > > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi > _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

