Page 1 of 1

Not Redrawing after adding custom axis

Posted: Tue Mar 18, 2008 4:39 am
by 45194
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

Posted: Tue Mar 18, 2008 9:22 am
by narcis
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.

Posted: Tue Mar 18, 2008 5:28 pm
by 45194
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