Page 1 of 1

Zoom Direction problems

Posted: Thu Dec 02, 2004 8:14 pm
by 9333098
Line Series Horizontal Zoom direction correctly zooms the X axis. The Y axis however only shows the top range.

Vertical Zoom direction : Y axis zooms correct. X axis seems to zoom to its 0 to about 20 % range. An up-left mouse drag to unzoom a chart freshly drawn using FillSampleValues results in the chart actualy being zoomed when nothing should happen. Repeated zuch unzoom mouse drags each result in successive unzoom operations.

This is for Ver 7.0, 7.01, 7.02

Posted: Fri Dec 03, 2004 11:23 am
by Pep
Hi Steve,

yes, you're correct, there's a known bug with the Zoom. In meantime the solution is to reset the axis scale in the OnZoom event :
if zoom.direction = horiz then
tchart1.axis.left.automatic = false
end if

Posted: Fri Dec 03, 2004 2:47 pm
by 9333098
I think you meant

if chart1.zoom.direction = tzdHorizontal then
chart1.Axes.left.automatic := true;

for vertical :
if chart1.zoom.direction = tzdVertical then
chart1.Axes.bottom.automatic := true;

What about the problem with Up Left mouse dragging always performing a zoom (instead of UnZoom as should be the default behavior) when chart1.zoom.direction = tzdVertical ? I've tried setting chart1.zoom.UpLeftZooms := false; in code and it still always does a Zoom.