RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TActionBars.Notify Method

Responds when items are added to or removed from the collection.

Pascal
procedure Notify(Item: TCollectionItem; Action: TCollectionNotification); override;
C++
virtual __fastcall Notify(TCollectionItem Item, TCollectionNotification Action);

Notify is called automatically when the items in the collection change. 

Item is the item that was just added to or that is about to be removed from the collection. 

Action indicates whether item was added, is about to be removed, or is about to be deleted: 

As implemented in TCollection, Notify calls Added when Action is cnAdded and calls Deleting when Action is cnDeleting. TCollection ignores the cnExtracting action. Descendant classes can override Notify to modify this behavior. 

 

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