Page 1 of 1

Axes no longer being updated with SetMinMax method

Posted: Thu Aug 06, 2009 3:53 pm
by 15654056
I just updated my TeeChart from v2.0 to v4.0xxx, I was able to solve all other minor issues except this one. I do my own "zoom" by setting the Axes Min and Max. With the new version when I set the min and max, the data is redrawn correctly, but the Axes values are not updated to match... they stay at the original values from when the data was loaded. Is there something new I need to do to force the Axes to redraw correctly?

Thanks,
Bradley

Re: Axes no longer being updated with SetMinMax method

Posted: Fri Aug 07, 2009 9:52 am
by yeray
Hi Bradley,

Could you please try to arrange and attach here a simple example project we can run as-is to reproduce the problem here?

Re: Axes no longer being updated with SetMinMax method

Posted: Fri Aug 07, 2009 3:43 pm
by 15654056
Hi Yeray,

I created a sample program to show the problem, but there was no problem... it worked as it should. So I discovered that in the AfterDraw event where I do addition drawing on the chart, I set a clip region just around the chart area itself. This used to be fine in v2.0, but with the new version something has changed internally and now requires me to "UnClip" the region. Once I did that before leaving the AfterDraw event, everything works as it should.

Thanks for the help,
Bradley

Re: Axes no longer being updated with SetMinMax method

Posted: Fri Aug 07, 2009 3:59 pm
by yeray
Hi Bradley,

I'm pleased to try to help, more than really helping at all!