The ControlDestroyed method or DelphiVCL.Application.ControlDestroyed is used to notify the application when a control is destroyed.
ControlDestroyed is for internal use and is called automatically by TControl. Do not call it directly.
ControlDestroyed notifies the application that the control passed as the Control parameter has been destroyed, so that the properties which refer to controls, such as MainForm and ActiveCustomForm, can be updated to specify a valid object or nil (Delphi) or NULL (C++).
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.ControlDestroyed using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ControlDestroyed) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.ControlDestroyed using the print() command:
1 2 |
print(DelphiVCL.Application.ControlDestroyed) print(DelphiVCL.Application.ControlDestroyed.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.