OnUndoZoom seems can't provide new coordinates of points?
Posted: Fri Jul 23, 2004 1:09 pm
Hi,
I have a strange thing happenning. I use both OnZoom and OnUndoZoom handlers and OnSeriesBeforeDrawValuesTchart to make some adjustments depending on what action was take Zoom or Unzoom. But, it is appeared that if Zoom is fired then in method OnSeriesBeforeDrawValuesTchart I'm getting new coordinates - that works fine. Unlike when OnUndoZoom is fired I still get old coordinates. Why?
nMin, nMax it gives still old pre UndoZoom values.
Please, let me know how I can get new values of Min and Max after UndoZoom is fired.
Any help would be greatly appreciated as always. Thanks.
Michael.
I have a strange thing happenning. I use both OnZoom and OnUndoZoom handlers and OnSeriesBeforeDrawValuesTchart to make some adjustments depending on what action was take Zoom or Unzoom. But, it is appeared that if Zoom is fired then in method OnSeriesBeforeDrawValuesTchart I'm getting new coordinates - that works fine. Unlike when OnUndoZoom is fired I still get old coordinates. Why?
Code: Select all
nMax = cBottomAxis.GetMaximum();
nMin = cBottomAxis.GetMinimum();
long nMaxPos = cBottomAxis.CalcXPosValue(nMax);
long nMinPos = cBottomAxis.CalcXPosValue(nMin);
Please, let me know how I can get new values of Min and Max after UndoZoom is fired.
Any help would be greatly appreciated as always. Thanks.
Michael.