API:Vcl.Mask.TMaskEdit.ReadOnly
Delphi
property ReadOnly;
C++
__property ReadOnly = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.Mask.pas Vcl.Mask.hpp |
Vcl.Mask | TMaskEdit |
Description
Determines whether the user can change the text of the edit control.
Vcl.Mask.TMaskEdit.ReadOnly inherits from Vcl.StdCtrls.TCustomEdit.ReadOnly. All content below this line refers to Vcl.StdCtrls.TCustomEdit.ReadOnly.
Determines whether the user can change the text of the edit control.
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.