RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TItemProp.ReadOnly Property

Indicates whether users can edit the item's value by typing in a new value.

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

Set ReadOnly to true to prevent users from typing in a new value for the associated item. For example, to force users to select item values only from a pick list, you can set the EditStyle to esPickList and set ReadOnly to true. Similarly, to force users to enter values only using a property editor, you can set EditStyle to esEllipsis and set ReadOnly to true. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!