What Is The GetParentComponent Method in DelphiVCL.Application?
By Muhammad Azizul Hakim October 20, 2021
The GetParentComponent method or DelphiVCL.Application.GetParentComponent is used to return the containing component.
GetParentComponent returns a reference to the component that contains the current component, or nil if there is no container. Use HasParent to determine whether a component has a containing component.
For example, a button on a panel on a form returns the panel, the panel returns the form, and the form returns nil.
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.GetParentComponent using the print() command:
See the responses in our Windows command prompt:
By Muhammad Azizul Hakim October 20, 2021
The GetParentComponent method or DelphiVCL.Application.GetParentComponent is used to return the containing component.
GetParentComponent returns a reference to the component that contains the current component, or nil if there is no container. Use HasParent to determine whether a component has a containing component.
For example, a button on a panel on a form returns the panel, the panel returns the form, and the form returns nil.
How to browse the properties and methods of the DelphiVCL.Application.GetParentComponent?
Let’s browse all the properties and methods of the DelphiVCL.Application.GetParentComponent using dir() command:
Python:
import DelphiVCL
dir(DelphiVCL.Application.GetParentComponent)
You can also read short information about the DelphiVCL.Application.GetParentComponent using the print() command:
Python:
print(DelphiVCL.Application.GetParentComponent)
print(DelphiVCL.Application.GetParentComponent.__doc__)