How capture the redraw event

 

hello,

I draw lines using Canvas over my chart.

I would like to capture chart redraw events so I can redraw my canvas.

Currently I am redrawing the canvas using the cart event ID=9 ON_MOUSE_FOCUS_SET  but I would like to use a more elegant solution.

Any idea?


TX
 
gbulle :

hello,

I draw lines using Canvas over my chart.

I would like to capture chart redraw events so I can redraw my canvas.

Currently I am redrawing the canvas using the cart event ID=9 ON_MOUSE_FOCUS_SET  but I would like to use a more elegant solution.

Any idea?


TX
You can use the event: 
CHARTEVENT_CHART_CHANGE  — event of chart changes;
Reason: