Table of Contents

TAdvCustomFormDesigner.PlaceComponentClassName Method

Starts a component placing operation in the designer.

Remarks

Call PlaceComponentClassName 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.PlaceComponentClassName(AClassName: TComponentName);

Parameters

<-> Parameter Type Description
AClassName TComponentName the name of 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.

See also