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

# TScrollingWinControl.DoOnResize

Performs actions needed when the control has been resized.

## Declaration

Source position: forms.pp line 186

`protected procedure TScrollingWinControl.DoOnResize; override;`

## Description

DoOnResize is an overridden method in TScrollingWinControl. It calls the inherited method on entry to signal the OnResize event handler (when assigned). Other OnResize handlers for the application are also signalled.

When AutoScroll is enabled, the UpdateScrollbars method is called to recalculate the page, range, and visibility for the scroll bars on the control. This action is not performed if either VertScrollBar or HorzScrollBar has not been assigned.

## See also

TScrollingWinControl.AutoScroll |  | Indicates whether scroll bars are automatically displayed or hidden when needed.
TScrollingWinControl.UpdateScrollbars |  | Initializes or updates the scroll bars for the control.
TScrollingWinControl.VertScrollBar |  | The vertical scroll bar for the control.
TScrollingWinControl.HorzScrollBar |  | The horizontal scroll bar for the control.
TControl.DoOnResize |  | Signals OnResize event handlers for the control.
TControl.OnResize |  | Notification handler for a resize of the control.
TControl.DoCallNotifyHandler |  | Signals handler routines for the specified control handler type.