RAD Studio VCL Reference
|
Returns the containing Component.
function GetParentComponent: TComponent; dynamic;
__fastcall TComponent * GetParentComponent();
GetParentComponent returns a reference to the component that contains the current component, or nil of there is no container. Use HasParentComponent to determine if a component has a containing component.
For example, a button on a panel on a form will return the panel. The panel will return the form. And the form will return nil.
HasParentComponent
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|