Zoom on Selected Chart Area

I am currently using Delphi XE7 Update 1 with an updated version of TMS components.

I am wondering whether there is a way to zoom in on a chart area that is selected by the mouse?  I have currently only found the zoom feature using the built-in navigation bar.

Ideally, I would like the user to be able to click and select an area of the chart and then zoom in on that area.

Hi, 


Yes this is possible. You should be able
to use this feature by holding CTRL key on the keyboard, <o:p></o:p>

clicking with the left mouse button and dragging the area you want to zoom. The zooming occurs when releasing the left mouse button.


Kind Regards, 

Pieter

This is good to know, I was just in the process of writing such a function.

However, with your implementation, it only seems to zoom in the x direction. If I draw the box around somewhere in the upper part of the trace, the x directions zooms to my selection, but the y always includes the fully normalized range of the data. Is this as designed, or am I missing a setting somewhere?

Hi, 


if you specified to use arDisabled then the zooming will not work in y direction.
You need to specify another range type to support this as well.

Kind Regards, 
Pieter

I just found the CtrlZooming property - setting this to czBoth fixes the issue.

This is going to save me a lot of headaches. Thanks.

mmm - where did you find the CtrlZooming property, certainly not in the manual? I can't find it

The CTRLZooming property is available on panes level:


AdvChartView1.Panes[0].CtrlZooming

Kind Regards, 
Pieter