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

# TCustomControlBar.Resize

Signals the OnResize event handler (when assigned) and re-aligns bands and their controls.

## Declaration

Source position: extctrls.pp line 1646

`protected procedure TCustomControlBar.Resize; override;`

## Description

Resize is an overridden method in TCustomControlBar. It calls the inherited method on entry to handle delayed auto-sizing requests and signal the OnResize event handler (when assigned).

When AutoSize is False, the visible TCtrlBand instances on the control are initialized, aligned, and positioned. The controls on the bands are also aligned for each of visible bands. Invalidate is called to force the control to be redrawn.

## See also

TCustomControlBar.AutoSize |  | Indicates if bands are automatically sized and positioned on the control bar.
TCustomControlBar.CheckBandsSizeAndVisibility |  | Updates the size and visibility for TCtrlBand instances defined in the control bar.
TCustomControlBar.AlignControlsToBands |  | Aligns visible control bands in the container.
TControl.Resize |  | Checks for changes and calls DoOnResize if needed.
TWinControl.InitializeWnd |  | Copies cached control properties to the newly created widget.
TWinControl.DoAdjustClientRectChange |  | Asks the widget if ClientRect has changed since the last AlignControl execution; calls AdjustSize on change.