Sign in Join
FPDoc Onlineexperiment

TApplication.Notification procedure

Member of TApplicationpublicIn unit Forms

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.