RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDispatchConnection.Notification Method

Responds when other objects are created or destroyed.

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

Notification is called automatically so objects can make internal adjustments when components are created or destroyed. TDispatchConnection overrides the inherited method to set the ObjectBroker property to nil (Delphi) or NULL (C++) when it receives notification that that object is about to be destroyed. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!