Vcl.Forms.TCustomForm.Notification

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Notification(AComponent: TComponent;
Operation: TOperation); override;

C++

virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Responds to notifications that objects are about to be inserted or removed.

Notification is called when the component specified by AComponent is about to be inserted or removed, as specified by Operation. By default, forms pass along the notification to their owned components, if any. In addition, Notification makes internal adjustments if the main menu is added or deleted.

A form can, if needed, override Notification to make other adjustments when components are inserted or removed. In particular, if a form has object fields or properties that contains references to other components, it might check the notifications of component removals and invalidate those references as needed.

See Also