RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.Notification Method

Responds to a notification that a component has been added or is about to be deleted.

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

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++). 

 

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