RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.SetParentComponent Method

Sets the parent for the control.

Pascal
procedure SetParentComponent(Value: TComponent); override;
C++
virtual __fastcall SetParentComponent(TComponent * Value);

Do not call the SetParentComponent method. It is used by the streaming system that loads and saves VCL components. SetParentComponent makes the component specified by the Value parameter the parent of the control. 

SetParentComponent calls the SetParent method only if the component specified as the parent is a windowed control. 

 

HasParent 

SetParent 

GetParentComponent 

SetParentComponent

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!