RAD Studio VCL Reference
TBasicAction.Notification Method

Responds when components are created or destroyed.

procedure Notification(AComponent: TComponent; Operation: TOperation); override;
virtual __fastcall Notification(TComponent * AComponent, TOperation Operation);

Do not call the Notification method in an application. Notification is called automatically when the component specified by AComponent is about to be inserted or removed, as specified by Operation.  

TBasicAction overrides the Notification method to check whether the component that is the value of the ActionComponent property is about to be freed. If so, it sets the ActionComponent property to nil (Delphi) or NULL (C++). 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!