Sign in Join
FPDoc Onlineexperiment

TCustomLabel.OptimalFill property

Member of TCustomLabelprotectedIn unit StdCtrls

If True, the font size is adjusted for optimal fill of the available space.

Declaration

pascal
property OptimalFill: Boolean read FOptimalFill write SetOptimalFill default False;

Description

OptimalFill is a Boolean property which indicates that the Font height should be maximized to fill the available width in the control. The default value for the property is False.

Setting OptimalFill to True causes AutoSize to be set to False. The AdjustFontForOptimalFill method is called to get and apply the maximum font height allowed for the Width and Height in the control.

Changing the value for the property causes Invalidate to be called to redraw the control.

See also

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