problem with CalcXSizeValue

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
KS
Newbie
Newbie
Posts: 6
Joined: Mon Jul 12, 2004 4:00 am

problem with CalcXSizeValue

Post by KS » Fri Jan 14, 2005 10:43 pm

Hi,

I am using TeeChart Pro v7 for Delphi 5.

Problem: BarSeries.CalcXSizeValue method returns invalid values when it is called from TChart.OnUndoZoom even handler.
However when CalcXSizeValue called from OnZoom event handler, it works correctly.

Any solution?

Regards
Alex

KS
Newbie
Newbie
Posts: 6
Joined: Mon Jul 12, 2004 4:00 am

Post by KS » Sat Jan 15, 2005 12:58 am

PS Actually CalcXSizeValue called from OnZoom event handler returns wrong value as well. If zoom is animated it returns value calculated for previous stage of the zoom (so result almost correct).
CalcXSizeValue called from OnUndoZoom returns value calculated for previous (zoomed) stage.
And what is worse - CalcXSizeValue returns wrong value when we add new data into series. E.g. if program adds 4 items, CalcXSizeValue returns value that looks correctly for 3 items....

Looks like we need to call ChartAxis.InternalCalcRange or ChartAxis.RecalcSizeCenter manually. But these methods are private.

Any reccomendations?

Regards
Alex

KS
Newbie
Newbie
Posts: 6
Joined: Mon Jul 12, 2004 4:00 am

Post by KS » Tue Jan 18, 2005 6:48 pm

Anybody here?

Post Reply