Sign in Join
FPDoc Onlineexperiment

TCustomMaskEdit.EditText property

Member of TCustomMaskEditprotectedIn unit MaskEdit

Value entered in the control and obscured / formatted using the EditMask.

Declaration

pascal
property EditText: string read GetEditText write SetEditText;

Description

Calls the inherited RealGetText method to get the value for the property. When a new value for the property is assigned, mask literals are restored for the new value to ensure that the control is in a recoverable state. EditText is truncated, or padded with ClearChar as needed, so that the value matches the length for the EditMask. These actions are not performed when IsMasked returns False (EditMask has not been assigned).

SetEditText is not Delphi compatible. Delphi allows any text value to be assigned to the control, leaving the control in an unrecoverable state where it is impossible to leave the control because the text can never be validated. The LCL implementation does not allow this.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.