Page 1 of 1

OnUndoZoom seems can't provide new coordinates of points?

Posted: Fri Jul 23, 2004 1:09 pm
by 9080443
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?

Code: Select all

	nMax = cBottomAxis.GetMaximum(); 
	nMin = cBottomAxis.GetMinimum();
	long nMaxPos = cBottomAxis.CalcXPosValue(nMax);
	long nMinPos = cBottomAxis.CalcXPosValue(nMin);
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.

Posted: Mon Jul 26, 2004 8:45 am
by Pep
Hi Michael,

how about checking the values in the OnAfterDraw event ?