RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.CreateCurrentComponent Method

Creates an instance of the component that is currently selected on the component palette.

Pascal
function CreateCurrentComponent(Parent: TComponent; const Rect: TRect): TComponent;
C++
__fastcall TComponent * CreateCurrentComponent(TComponent * Parent, const TRect Rect);

Call CreateCurrentComponent to create an instance of the component that is selected on the component palette.  

Parent is the parent of the newly created component. 

Rect specifies the boundaries of the newly created component. 

CreateCurrentComponent returns the new component instance. 

 

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