TAdvCustomFormDesigner.PlaceComponentClass Method
Starts a component placing operation in the designer.
Remarks
Call PlaceComponentClass to start a placing operation of a specified component class in the designer. After calling this method, the designer will enter in the placing state where end-user can click or drag a rect in the form designer to insert a new control (or component). The operation is finished when the component is inserted, or if the end-user cancels the operation (pressing Esc, for example), or if CancelPlacing method is called, or if AutoPlaceComponent is called.
Syntax
Unit: FormDesigner
procedure TAdvCustomFormDesigner.PlaceComponentClass(AComponentClass: TComponentClass);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AComponentClass | TComponentClass | the class of the component to be placed when the placing operation is finished. The component is only instantiated when the place operation is performed. |