Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomRangeControl.OnDrawScale Event

In This Article

Enables you to custom paint the range control’s ruler.

#Declaration

Delphi
property OnDrawScale: TdxRangeControlClientDrawEvent read; write;

#Remarks

This event is fired every time the range control’s ruler (or any of its scales) needs repainting.

The Sender parameter specifies the range control that raised the OnDrawScale event.

The ACanvas specifies the drawing surface.

The AViewInfo parameter is used to provide the data rane selection and visualization model-related ViewInfo information (an instance of the TdxRangeControlCustomClientViewInfo class descendant).

The AHandled parameter specifies whether default painting is required. Passing True as the AHandled parameter in the OnDrawScale event handler prevents the default ruler/scale(s) painting operation, allowing you to provide a custom painter for the ruler.

See Also