Skip to main content

TcxGridChartDiagram.OnCustomDrawValue Event

Occurs when a data marker needs to be painted.

Declaration

property OnCustomDrawValue: TcxGridChartDiagramValueCustomDrawEvent read; write;

Remarks

The OnCustomDrawValue event occurs every time a data marker (for instance, a bar for a bar diagram or a column for a column diagram) needs to be painted. As with other custom draw events it provides a canvas for the grid control (the ACanvas parameter), ViewInfo (the AViewInfo parameter and its Bounds property) to get the bounding rectangle of the painted element (in this case the data marker). Sender is usually the element that caused the repaint. The ADone parameter’s value is initially False. Set it to True to prevent the grid from performing the default painting and painting over any custom painting. Note that the diagram’s OnCustomDrawValue event for a specific series is fired only when the OnCustomDrawValue event handler of this series has not finished drawing the data marker.

To learn more about custom drawing, please refer to the Custom Draw topic.

See Also