Not Redrawing after adding custom axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Aptitude
Newbie
Newbie
Posts: 14
Joined: Wed May 23, 2007 12:00 am
Contact:

Not Redrawing after adding custom axis

Post by Aptitude » Tue Mar 18, 2008 4:39 am

Hi,

I have a chart with a few fastline series on it. During runtime I display them on either the same axis or on different horizontal strips on top of each other using custom axis. To adujust the margins on labels for custom axis I have used the GetAxisLabel event of the chart.

But when I add custom axis and associate it with the chart it doesn't redraw itself. I have to either zoom or pan and then it promptly redraws itself. But I want it to redraw and show me the axis as soon as the new axis applied. Could you please help me out?

Regards,
Gaurav

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

Post by Narcís » Tue Mar 18, 2008 9:22 am

Hi Gaurav,

You could try using a Bitmap call to force the chart being internally repainted, for example:

Code: Select all

Bitmap bmp = tChart1.Bitmap;
This should be done after applying new custom axis.

If this doesn't help please send us a simple example project we can run "as-is" to reproduce the problem here. You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

Aptitude
Newbie
Newbie
Posts: 14
Joined: Wed May 23, 2007 12:00 am
Contact:

Post by Aptitude » Tue Mar 18, 2008 5:28 pm

Thank you!

Though it takes some time to redraw, I am happy that it atleast redraws when I need it to.

I really appreciate your support. You have been very responsive and right on target.

Thanks again,
Gaurav

Post Reply