RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.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);

Notification allows TToolButton to update its DropdownMenu or MenuItem property when the menu or menu item to which it refers is destroyed.  

Override the Notification method to respond to notifications that other components are about to be destroyed or have just been created. 

 

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