TiScaleComponent.AutoScaleEnabled
TiScaleComponent See Also
Determines whether the PositionMin & PositionMax and or the TickMajorCount is automatically adjusted to display the scale in a more human readable form.
property AutoScaleEnabled : Boolean;
Description
Use AutoScaleEnabled to specify whether the PositionMin & PositionMax and or
the TickMajorCount is automatically adjusted to display the scale in a more human readable form.
The algorithm for calculating the TickMajorCount will try to match the AutoScaleDesiredTicks and will not exceed the AutoScaleMaxTicks. In determining the actual TickMajorCount , only values that result in step values that are divisible by the constants
listed below are allowed.
The PositionMin & PositionMax properties will only be adjust if the AutoScaleStyle is set to iassAutoMinMax to ensure the scale is in a human readable form and
always starts and stops with a major tick.
If the AutoScaleStyle is set to iassFixedMinMax, then the ends of the scale may not start or end on
a major tick.
If the scale passes through or starts or stops on zero, AutoScale will always
ensure that one of the major ticks reads zero.
If a MajorTickCount can not be found that is less than or equal to the AutoScaleMaxTicks, then the TickMajorCount will not be changed.
Allowed Step Divisor
- 0
StepValue = (PositionMax – PositionMin) / (MajorTickCount – 1)
0
2.5 Note : Step Divisors are scaled to StepValue Log base 10 power
5.0
7.5
Example
Delphi
iComponent.AutoScaleEnabled := True;
C++ Builder
iComponent->AutoScaleEnabled = True;
Contents | Index | Previous | Next