Drawing on a chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Agrilink
Newbie
Newbie
Posts: 38
Joined: Thu Feb 02, 2006 12:00 am

Drawing on a chart

Post by Agrilink » Fri Apr 21, 2006 12:51 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 21, 2006 8:37 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply