Page 1 of 1

Drawing on a chart

Posted: Fri Apr 21, 2006 12:51 am
by 9640166
Hi,

I wish to draw text on a chart when the CursorChangeEvent fires.

I am thinking the best way to do this is to create a custom event which inherits from the AfterDraw event which I can then call when the CursorChangeEvent fires. However I can't find what event class the AfterDraw event uses to inherit from.

Is this the best way to do it, or is there a simpler solution?

Thanks in advance.

Posted: Fri Apr 21, 2006 8:37 am
by narcis
Hi Agrilink,

You can try implementing the code in the AfterDraw event and if the CursorChangeEvent doesn't fire AfterDraw event, in the CursorChangeEvent, call tChart1.Invalidate() or Bitmap bmp=tChart1.Bitmap to force the chart being redrawn.