Sign in Join
FPDoc Onlineexperiment

TCustomAbstractGroupedEdit.MaxLength property

Member of TCustomAbstractGroupedEditpublicIn unit GroupedEdit

Maximum number of characters allowed in the editor for the control.

Declaration

pascal
property MaxLength: Integer read GetMaxLength write SetMaxLength;

Description

MaxLength is an Integer property with the maximum number of characters allowed in EditText. The property value is read from and written to the MaxLength property in BaseEditor. The default value (0) indicates that a maximum length is not enforced.

Use EditMask to specify a mask that is applied to the stored value for the control.

In Delphi MaxLength only limits user input. The LCL actually restricts the maximum length of the stored text; this simplifies the implementation for non-Win32 widgetsets.

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