Skip to main content

TdxGaugeCustomScale Class

The base class for all types of the scales.

Declaration

TdxGaugeCustomScale = class(
    TcxComponentCollectionItem,
    IdxGaugeSelectableElement
)

Remarks

This class implements the basic functionality required for all scales that can be created within the Gauge Control. Any custom scale classes must be derived from the TdxGaugeCustomScale class.

This class extends its ancestor class with the following members, allowing you to:

  • Anchor the scale to any other scale within the same Gauge Control instance (the AnchorScaleIndex property);

  • Set the scale’s size and positioning in either absolute or relative units within its parent object (the OptionsLayout property);

  • Bind the data-aware scale to a data storage (the DataBinding property);

  • Hide and show the scale without actually deleting and re-creating it (the Visible property);

  • Identify the actual type of the scale (the ScaleType property);

  • Assign one of the available distinctive visual styles to the scale (the StyleName property);

  • Customize the scale’s appearance settings, such as the visibility of its individual elements, value display mode, etc. (the OptionsView property);

  • Restore the scale parameters, including but not limited to, the value display range, scale range positioning angles, the number of major and minor tick marks, to the scale style-determined default values (the RestoreStyleParameters procedure);

  • Manage the collection of custom inscriptions created within the scale (the Captions property).

Note

You do not need to create instances of the TdxGaugeCustomScale class, use its descendants instead.

The lists of descendant classes that implement the actual unbound and data-aware scales include:

Unbound Quantitative Scale Classes

Data-Aware Quantitative Scale Classes

The TdxGaugeCustomScale object is referenced by the Items property implemented in the TdxGaugeScaleCollection class.

See Also