Sign in Join
FPDoc Onlineexperiment

TToolButton.AutoSize property

Member of TToolButtonpublishedIn unit ComCtrls

Allows the control to grow to the size for its content.

Declaration

pascal
property AutoSize: default False;

Description

Allows automatic adjustment of the size for the control, according to its content. The action performed depends on the control type. For example, a label or button can become bigger or smaller to accommodate a longer or shorter caption.

Default value for the property is False, and disables auto-sizing for the control instance.

The write access specifier is overridden in TToolButton to resize and align the tool button and its parent tool bar when needed.

See also

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