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.
Drawing on a chart
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |