The Destroying method or DelphiVCL.Application.Destroying is used to indicate that the component and its owned components are about to be destroyed.
Destroying sets the csDestroying flag in the ComponentState property. It then calls the Destroying method for each owned component so that its csDestroying flag is 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.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.Destroying using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.Destroying) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.Destroying using the print() command:
1 2 |
print(DelphiVCL.Application.Destroying) print(DelphiVCL.Application.Destroying.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.