[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TToolButton.AutoSize

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

Declaration

Source position: comctrls.pp line 2179

published property TToolButton.AutoSize : Boolean
  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

TToolButton.SetAutoSize

  

Sets the value the AutoSize property and adjusts the control size when needed.

TControl.AutoSize

  

Allows automatic adjustment of the size for the control, according to its content.


Version 3.2 Generated 2024-02-25 Home