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

# TCustomForm.EndFormUpdate

Decrements the form update counter, and re-enables auto-sizing on the form.

## Declaration

Source position: forms.pp line 645

`protected procedure TCustomForm.EndFormUpdate;`

## Description

EndFormUpdate is used along with BeginFormUpdate method to manage auto-sizing during form updates. An initial call to BeginFormUpdate disables auto-sizing when the form instance is created.

EndFormUpdate decrements the internal update counter. When the update count reaches 0, auto-sizing is re-enabled.

BeginFormUpdate is called from the CreateNew method and disables auto-sizing while the new form instance is configured. EndFormUpdate is called from the AfterConstruction method, and occurs after the bounds for the form have been updated but before the form is scaled using AutoAdjustLayout.

## See also

TCustomForm.BeginFormUpdate |  | Increments the form update counter, and disables auto-sizing on the initial update lock.
TCustomDesignControl.AutoAdjustLayout |  | Applies a new display density (Pixels Per Inch) for a layout policy to the control.
TCustomForm.CreateNew |  | Creates a form instance without a resource (.lfm) file.
TCustomForm.Create |  | Constructor for the class instance.
TCustomForm.AfterConstruction |  | Performs actions when the form has been created and loaded from its resource file.
TWinControl.FormEndUpdated |  | Realizes all cached changes after a bulk update to a form. Calls the inherited FormEndUpdated method, then informs each child control.