Vcl.ActnCtrls.TCustomComboControl.SetParent
Delphi
procedure SetParent(AParent: TWinControl); override;
C++
virtual void __fastcall SetParent(Vcl::Controls::TWinControl* AParent);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ActnCtrls.pas Vcl.ActnCtrls.hpp |
Vcl.ActnCtrls | TCustomComboControl |
Description
Sets the parent of the custom combo control.
SetParent is the protected implementation of the Parent property.
The AParent
parameter specifies the new parent of the control.
If the control already has a parent, SetParent removes the control from that parent's list of controls by calling the parent's RemoveControl method. If AParent
is not nil (Delphi) or NULL (C++), SetParent calls the InsertControl method to add the control to its list of controls.