[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomEdit.MaxLength

The maximum length of the text; zero for unlimited.

Declaration

Source position: stdctrls.pp line 812

public property TCustomEdit.MaxLength : Integer
  read FMaxLength
  write SetMaxLength
  default 0;

Description

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.