TiGaugeComponent.AddPointer

TiGaugeComponent See Also

Adds a single pointer to the gauge component.

function AddPointer : Integer;

Description

Call AddPointer to add a single pointer to the gauge component. The return value from the function is an unique index used for manipulating the pointer.

Use the following functions to modify the properties of each Pointer...

TiAngularGauge

Property Function

Pointer Color SetPointersColor

Pointer Margin SetPointersMargin

Pointer Position SetPointersPosition

Pointer Size SetPointersSize

Pointer Style SetPointersStyle

TiAngularLogGauge

Property Function

Pointer Color SetPointersColor

Pointer Margin SetPointersMargin

Pointer Position SetPointersPosition

Pointer Size SetPointersSize

Pointer Style SetPointersStyle

TiLinearGauge

Property Function

Pointer Color SetPointersColor

Pointer Margin SetPointersOffset

Pointer Position SetPointersPosition

Pointer Size SetPointersSize

Pointer Style SetPointersStyle

TiLogGauge

Property Function

Pointer Color SetPointersColor

Pointer Margin SetPointersOffset

Pointer Position SetPointersPosition

Pointer Size SetPointersSize

Pointer Style SetPointersStyle

Note: For backward compatibility, the original PointerColor, PointerMargin, PointerSize, PointerStyle, and Position properties will still work, but will only modify Pointer Index 0. For multiple-pointer applications, we recommend discontinuing their use in lieu of the functions listed above.

Use the DeletePointer function to delete a particular pointer or RemoveAllPointers to remove all but the first pointer (Index 0).

The index value for this object will decrement by one each time a pointer with a lower index value is deleted. Pointer with index 0 can never be deleted.

Example

Delphi

Index := iComponent.AddPointer();

C++ Builder

Index = iComponent->AddPointer();

Note: Index is 0 based. Pointer with Index 0 can never be deleted.

Contents | Index | Previous | Next