RAD Studio VCL Reference
TComponent.Destroying Method

Indicates that the component and its owned components are about to be destroyed.

procedure Destroying;
__fastcall Destroying();

Destroying sets the csDestroying flag in the ComponentState property. It then calls the Destroying method for each owned component so that their csDestroying flags are also set. If csDestroying is already set, Destroying does nothing. 

It is not necessary to call Destroying directly. Destroying is automatically called when the component is destroyed. 


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