RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupControl.Notification Method

Responds to notifications that components are being created or destroyed.

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

After calling the inherited class' method, Notification checks whether the notification indicates the removal of DataSource or ListSource. If so, Notification sets the property to nil (Delphi) or NULL (C++). 

Derived classes can override Notification method to handle additional notifications, but the inherited class' method should be always be called. 

 

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