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

# TScrollingWinControl.AutoScrollEnabled

Indicates if automatic scrolling is enabled for the control.

## Declaration

Source position: forms.pp line 180

`protected function TScrollingWinControl.AutoScrollEnabled: Boolean; virtual;`

## Function result

True when not automatically resized or used as a dock site.

## Description

AutoScrollEnabled is a Boolean function which indicates if automatic scrolling is enabled for the control. The return value is True when the control is NOT automatically resized, or used as a dock site by an active docking manager.

Use the AutoSize property to enabled or disable automatic control resizing. Set the UseDockManager property to False to disable using the control as a DockSite for other controls.

## See also

TScrollBox.AutoSize |  | Allows automatic adjustment of the size for the control, according to its content.
TScrollBox.DockSite |  | Allows controls to be drag-and-dock-ed into this control.
TWinControl.UseDockManager