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

TCustomForm.BeginFormUpdate

Increments the form update counter, and disables auto-sizing on the initial update lock.

Declaration

Source position: forms.pp line 642

protected procedure TCustomForm.BeginFormUpdate;

Description

Used with the EndFormUpdate method to manage auto-sizing during form updates. For the initial call to BeginFormUpdate, DisableAutoSizing is called to suspend auto-sizing.

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.EndFormUpdate

  

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

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.

TControl.DisableAutoSizing

  

Disables automatic sizing; implies that the default size is accepted, or sizing is done manually.

TControl.EnableAutoSizing

  

Enables automatic sizing for the control.


Version 3.2 Generated 2024-02-25 Home