RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEdit.ReadOnly Property

Determines whether the user can change the text of the edit control.

Pascal
property ReadOnly: Boolean;
C++
__property Boolean ReadOnly;

To restrict the edit control to display only, set the ReadOnly property to true. Set ReadOnly to false to allow the contents of the edit control to be edited. 

Setting ReadOnly to true ensures that the text is not altered, while still allowing the user to select text. The selected text can then be manipulated by the application, or copied to the Clipboard. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!