TiObjectCanvas.AddLabel

TiObjectCanvas

Adds a label object to the control.

function AddLabel(X, Y : Double; Caption : String) : Integer;

Description

Call AddLabel to add a label object to the canvas. All other properties of the label not specified in the parameters will be set to the default values. Store the handle returned if you wish to manipulate the object at a later time or to set the other properties of the object.

Example

Delphi

Label1Handle := iComponent.AddLabel(0, 0, 'xyz');

C++ Builder

Label1Handle = iComponent->AddLabel(0, 0, "xyz");

Contents | Index | Previous | Next