OnUndoZoom seems can't provide new coordinates of points?

TeeChart for ActiveX, COM and ASP
Post Reply
GLSWG
Newbie
Newbie
Posts: 39
Joined: Fri Jan 09, 2004 5:00 am

OnUndoZoom seems can't provide new coordinates of points?

Post by GLSWG » 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?

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.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 26, 2004 8:45 am

Hi Michael,

how about checking the values in the OnAfterDraw event ?

Post Reply