RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomEdit.DoSetMaxLength Method

Sets the MaxLength property.

Pascal
procedure DoSetMaxLength(Value: Integer); virtual;
C++
virtual __fastcall DoSetMaxLength(int Value);

DoSetMaxLength is the property access function for the MaxLength property. It is exposed as a protected method so that descendants of TCustomEdit can customize the implementation of the MaxLength property.  

DoSetMaxLength sends an EM_LIMITTEXT message to the window of the edit control. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!