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

TApplication.Notification

Performs actions when a component is added to or removed from the application.

Declaration

Source position: forms.pp line 1633

public procedure TApplication.Notification(

  AComponent: TComponent;

  Operation: TOperation

); override;

Arguments

AComponent

  

Component for the notification.

Operation

  

Operation performed for the component reference.

Description

Notification is an overridden method in TApplication used to perform actions needed when a component is added to or removed from the application. Notification provides special handling when component references are removed. It ensures that the internal member for a given component is set to Nil when the reference is freed. If the freed component is the MainForm for the application, the Terminate method is called to shut down the application and update the OS-level ExitCode.

See also

TComponent.Notification


Version 3.2 Generated 2024-02-25 Home