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

TCustomForm.DoOnResize

Performs a delayed resize action using the DelayedEvent for the control.

Declaration

Source position: forms.pp line 665

protected procedure TCustomForm.DoOnResize; override;

Description

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

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

DoOnResize uses the QueueAsyncCall method in the TApplication instance to queue execution of the private DelayedEvent method. DelayedEvent will discard duplicate requests, and call the inherited method to signal OnResize event handlers (when assigned) and update scroll bars (when needed).

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

See also

TApplication.QueueAsyncCall

  

Inserts an asynchronous call into the queue.

TScrollingWinControl.DoOnResize

  

Performs actions needed when the control has been resized.

TControl.OnResize

  

Notification handler for a resize of the control.

TComponent.ComponentState


Version 3.2 Generated 2024-02-25 Home