Unit 'StdCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomEdit.ReadOnly

Indicates if the user is prevented from changing the value for the Text in the control.

Declaration

Source position: stdctrls.pp line 872

public property TCustomEdit.ReadOnly : Boolean
  read GetReadOnly
  write SetReadOnly
  default False;

Description

ReadOnly is a Boolean property which indicates if the user is prevented from changing the value in the control.

ReadOnly is used in the CreateParams method to determine if the ES_READONLY edit style flag is included in the creation parameters for the control. The value is also passed to the widgetset class in the InitializeWnd method, and when the value for the property is changed.

When ReadOnly is True, the EditingDone method does not signal the OnEditingDone event handler (in the ancestor).

The default value for the property is False, and indicates that the value can be edited in the control.

See also

TCustomEdit.CreateParams

  

Ensures the required creation parameters are set for handle creation.

TCustomEdit.InitializeWnd

  

Initializes the window handle for the control.

TCustomEdit.EditingDone

  

Enforces the setting in the ReadOnly property when editing is finished in the control.

TControl.EditingDone

  

Signals the OnEditingDone event handler.

TControl.OnEditingDone

  

Event handler signalled when editing is done.



CT Web help

CodeTyphon Studio