Skip to main content

dxGaugeRegisterScale(TdxGaugeCustomScaleClass,Boolean) Method

Adds a custom scale type to the list of scales registered in the Gauge Control.

Declaration

procedure dxGaugeRegisterScale(AScaleClass: TdxGaugeCustomScaleClass; ARegisterPredefinedStyle: Boolean = True);

Parameters

Name Type
AScaleClass TdxGaugeCustomScaleClass
ARegisterPredefinedStyle Boolean

Remarks

Use this procedure to make the custom scale available within the Gauge Control. The custom scale class, derived from the TdxGaugeCustomScale class, is specified as the AScaleClass parameter of the dxGaugeRegisterScale procedure. The optional ARegisterPredefinedStyle parameter specifies whether the predefined visual styles of the registered style should be registered at the same time.

If you need to remove a particular scale type from the list of available scale types, use the dxGaugeUnregisterScale procedure instead.

See Also