RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomFrame.SetParent Method

Sets the Parent property.

Pascal
procedure SetParent(AParent: TWinControl); override;
C++
virtual __fastcall SetParent(TWinControl * AParent);

SetParent is the protected implementation of the Parent property. TCustomFrame overrides the method inherited from TControl to  

Update the parent form so that it is aware of any action lists in the frame. 

Regenerate the frame's window so that it fits properly into its new parent. 

 

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