procedure Notification(AComponent: TComponent; Operation: TOperation); override;
virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);
Responds to a notification that a component has been added or is about to be deleted.
Notification is called automatically when a component has just been added to the form or is about to be deleted.
AComponent is the component that was just added or that is about to be deleted.
Operation indicates whether AComponent was added or is about to be deleted.
As implemented in TToolBar, Notification checks whether the image list that is the value of the Images, HotImages, or DisabledImages property is about to be deleted. If so, it resets the property to nil (Delphi) or NULL (C++).