ISpeedometerScaleView.DeltaAngle

Syntax

DeltaAngle: Double;

Description

The DeltaAngle property determines the angle of the scale working area.

Comments

The minimum value is 10 degrees, the maximum one is 360 degrees. 270 degrees value is set to the property by default.

Example

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

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

Var

s: ISpeedometer;

v: ISpeedometerView;

ScaleView: ISpeedometerScaleView;

Begin

s := SpeedometerBox1.Speedometer;

v := s.View;

s.BeginUpdate;

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

ScaleView.StartAngle := -80;

ScaleView.DeltaAngle := 340;

s.EndUpdate;

End Sub Button1OnClick;

If the user presses the button after executing this example, the design of speedometer scale that is displayed in the SpeedometerBox1 component is changed. The initial angle and angle of the working area are changed for the scale.

See also:

ISpeedometerScaleView