Controls.TWinControl.InsertControl
Contents |
Delphi Information
From Controls.pas
procedure InsertControl(AControl: TControl);
Unit: Controls
Type: method
Visibility: public
Member Of: TWinControl
C++ Information
From Controls.hpp
void __fastcall InsertControl(Controls::TControl * AControl);
Unit: Controls
Type: method
Visibility: public
Member Of: TWinControl
Description
Inserts a control into the Controls array property.
Applications should not need to call InsertControl directly. Child controls are automatically inserted and removed when added or deleted at design time. At runtime, use the Parent property of the child control to insert it in the Controls array. If the child control is already the child of another control, setting the Parent property ensures that the child is removed from the Controls of the original parent.
InsertControl makes the inserted control a child, and the containing control the parent. The AControl parameter is the child control that is inserted into the Controls array.
See Also
Code Samples