Vcl.ExtCtrls.TBoundLabel.AdjustBounds
Delphi
procedure AdjustBounds; override;
C++
DYNAMIC void __fastcall AdjustBounds();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TBoundLabel |
Description
Resizes the label when the text changes.
Vcl.ExtCtrls.TBoundLabel.AdjustBounds inherits from Vcl.StdCtrls.TCustomLabel.AdjustBounds. All content below this line refers to Vcl.StdCtrls.TCustomLabel.AdjustBounds.
Resizes the label when the text changes.
When the text in the label or the font changes, AdjustBounds is implicitly called. It redraws the text in the client area, and then resizes the label if the AutoSize property is true.
When WordWrap is true, the width of the label is fixed. If AutoSize is also true, changes to the text cause the label to change in height. When AutoSize is true and WordWrap is false, the height of the label is determined by the font, and changes to the text cause the label to change in width.
Override AdjustBounds to make additional adjustments when the text changes.