RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBText.AutoSize Property

Determines whether the database text control automatically resizes to the width and length of the current string.

Pascal
property AutoSize: Boolean;
C++
__property Boolean AutoSize;__property Boolean AutoSize;

Use AutoSize to make the database text control adjust its size automatically so the client area accommodates the height and width of the field value. When AutoSize is false (the default), the control is fixed in size. When AutoSize is true, the size of the control is readjusted whenever its caption changes. The size of the control is also readjusted when the Font property changes. 

When WordWrap is true, the width of the database text control is fixed. If AutoSize is also true, changes to the field value cause the control to change in height. When AutoSize is true and WordWrap is false, the height of the control is determined by the font, and changes to the field value cause the control to change in width. 

 

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