ISpeedometerArrowView.AxisOffset

Syntax

AxisOffset: Double;

Description

The AxisOffset property determines the offset of the arrow from speedometer scale center.

Comments

The offset value is set in the range [0,1]. The arrow offset is 0 by default.

Example

Executing the example requires a form with the Button1 button and the SpeedometerBox component named SpeedometerBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

s: ISpeedometer;

v: ISpeedometerView;

ScaleView: ISpeedometerScaleView;

ArrowView: ISpeedometerArrowView;

Begin

s := SpeedometerBox1.Speedometer;

v := s.View;

s.BeginUpdate;

ScaleView := v.ScaleViews.Item(0);

ArrowView := ScaleView.ArrowViews.Item(0);

ArrowView.AxisOffset := 0.1;

ArrowView.Background.Color := GxColor.FromName("Green");

ArrowView.Length := 0.8;

ArrowView.Shape := SpeedometerArrowShapes.Triangle;

ArrowView.Width := 0.15;

s.EndUpdate;

End Sub Button1OnClick;

After executing the example, on clicking the button, the formatting of scale arrow of the speedometer displayed in the SpeedometerBox1 component is changed. The offset from the centre, background color, length and width are set for the arrow. The shape of the arrow is also changed.

See also:

ISpeedometerArrowView