Vcl.Controls.TControl.SetParentComponent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetParentComponent(Value: TComponent); override;

C++

DYNAMIC void __fastcall SetParentComponent(System::Classes::TComponent* Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Sets the parent for the control.

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.

See Also