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

TCustomForm.DoOnChangeBounds

Performs a delayed bounds change using the DelayedEvent for the control.

Declaration

Source position: forms.pp line 666

protected procedure TCustomForm.DoOnChangeBounds; override;

Description

DoOnChangeBounds is an overridden method in TCustomForm. It re-implements the method from the ancestor class, and does not call the inherited method.

DoOnChangeBounds sets an internal flag to indicate that a delayed bounds change event has been requested. It increments an internal counter to track the number of pending delayed events.

DoOnChangeBounds uses the QueueAsyncCall method in the TApplication instance to queue execution of the private DelayedEvent method. DelayedEvent will discard duplicate requests, and handle changes to the restored bounds for the control. DoShow or Activate are called if the form is being displayed or activated for the first time.

No actions are performed in the method when the component is being freed (csDestroying in ComponentState).

See also

TCustomForm.DoShow

  

Signals the OnShow event handler when needed.

TCustomForm.Activate

  

Notifies the OnActivate event handler.

TApplication.QueueAsyncCall

  

Inserts an asynchronous call into the queue.

TControl.DoOnChangeBounds

  

Signals OnChangeBounds event handlers for the control.

TComponent.ComponentState


Version 3.2 Generated 2024-02-25 Home