InsertComponent adds the component passed in the AComponent parameter to the end of the Components array property. The inserted component must have no name (no specified Name property value), or the name must be unique among all others in the Components list. When the owning component is destroyed, AComponent is also destroyed.
Components are automatically inserted and removed when visually manipulating them in the form designer. Use InsertComponent when manually adding components to another Owner component’s Components list.
In this post, you’ll learn more about InsertComponent or DelphiVCL.Application.InsertComponent method establishes the component as the owner of a specified component. Learning more about the InsertComponent Method will allow you to easily build programs with a python program maker.
Table of Contents
How to examine the properties and methods of DelphiVCL.Application.InsertComponent?
Let’s browse all the properties and methodsof the DelphiVCL.Application.InsertComponent using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.InsertComponent) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.InsertComponent using the print() command:
1 2 |
print(DelphiVCL.Application.InsertComponent) print(DelphiVCL.Application.InsertComponent.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.