Page 1 of 1

zoom options

Posted: Wed Nov 21, 2007 6:44 am
by 13045128
Is it possible to

1) do an incremental unzoom of the chart area. If I zoom in a number of times to be able step back or unzoom each of the zoomed windows.
2) ability to scroll or pan using the mouse the chart area when a chart has been zoomed in.

Posted: Wed Nov 21, 2007 10:43 am
by narcis
Hi history,

1. Zooming basically consists on changing axes scales. Therefore, to achieve that you should store an array with axes minimum and maximum values after each zoom. So that when you want to do a step back you can retrieve those values and apply them to the axes. For more information on axes please read Tutorial 4 - Axis Control. You may also be interested on using Zoomed and UndoneZoom events for that.

2. This is default behaviour. For more information on zooming and scrolling please read Tutorial 11 - Zoom and Scroll.

Tutorials can be found at TeeChart's program group.

Thanks in advance.