RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.HasParent Method

Returns true, indicating that field components act as part of a larger composite.

Pascal
function HasParent: Boolean; override;
C++
virtual __fastcall Boolean HasParent();

The streaming system that loads and saves components calls HasParent to determine when a component acts as part of a composite. The component that represents the entire composite is returned by the GetParentComponent method. The parent component is responsible for directing the loading and saving of its subcomponents. 

 

GetParentComponent 

GetChildren

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