Axis Scroll tool causes a zoom if zoom direction is vertical

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Axis Scroll tool causes a zoom if zoom direction is vertical

Post by SteveP » Tue Mar 08, 2005 4:33 pm

Line series with Axis Scroll tool associated with left axis and Chart Zoom Direction set to Vertical. Scrolling the left axis by dragging the axis or its tick marks downwards direction causes the chart to be zoomed as if the mouse had been draggged on the chart itself. Likewise it unzooms if scroll dragging the axis upwards. This does not happen if the chart zoom direction is horizontal or both.

In an attempt to get around this behavior using flags in the Chart OnClickAxis event, I discovered that it is only necessary to assign that OnClickEvent. That event can be empty and the problem is eliminated.

The same behavior occurs on a bottom axis scroll tool with zoom horizontal and can be eliminated with an empty OnClickAxis.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Mar 08, 2005 4:55 pm

Hi SteveP,

Yes, you are right. I've been able to reproduce this behaviour here and included it to our defect list to be fixed for future releases.

A workaround could also be disabling zoom on ChartScroll event.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply