RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.CreateComponent Method

Creates a specified component.

Pascal
function CreateComponent(ComponentClass: TComponentClass; Parent: TComponent; Left: Integer; Top: Integer; Width: Integer; Height: Integer): TComponent;
C++
__fastcall TComponent * CreateComponent(TComponentClass ComponentClass, TComponent * Parent, int Left, int Top, int Width, int Height);

Call CreateComponent to create an instance of ComponentClass at the position specified by the Left and Top parameters with the size specified by the Width and Height parameters. The new component will be a child of the component specified by the Parent parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!