Vcl.ValEdit.TItemProp.ReadOnly
Delphi
property ReadOnly: Boolean read FReadOnly write SetReadOnly;
C++
__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ValEdit.pas Vcl.ValEdit.hpp |
Vcl.ValEdit | TItemProp |
Description
Indicates whether users can edit the item's value by typing in a new value.
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.