TiLinearGauge.GetPointersStyle

TiLinearGauge See Also

Used to get the offset of a specific pointer at runtime.

type TiLinearGaugePointerStyle = (ilgpsPointer, ilgpsTriangle, ilgpsTLine, ilgpsColorBar);

function GetPointersStyle (Index: Integer): TiLinearGaugePointerStyle;

Description

Use GetPointersStyle to get the style of the Pointer specified by Index

For backward compatibility, the PointerStyle property of the gauge component will modify the margin of Pointer index 0.

These are the possible values:

Value
Meaning
ilgpsPointer
Triangle with a box and side lengths equal to GetPointersSize(Index).
ilgpsTriangle
Triangle only and side lengths equal to GetPointersSize(Index).
ilgpsTLine
Line running from Min to Max with a perpendicular line of length GetPointersSize(Index).
ilgpsColorBar
Color Bar with a width equal to TickMajorLength.

Example

Delphi

Value := iComponent.GetPointersStyle(1); //Gets the second pointer's style

C++ Builder

Value = iComponent->GetPointersStyle(1); //Gets the second pointer's style

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

Contents | Index | Previous | Next