Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Zoom on Selected Chart Area

 Post Reply Post Reply
Author
Gendera Thomas View Drop Down
New Member
New Member
Avatar

Joined: 09 Aug 2013
Posts: 11
Post Options Post Options   Quote Gendera Thomas Quote  Post ReplyReply Direct Link To This Post Topic: Zoom on Selected Chart Area
    Posted: 30 Sep 2015 at 11:39pm
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.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3463
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 02 Oct 2015 at 9:24am
Hi, 

Yes this is possible. You should be able to use this feature by holding CTRL key on the keyboard,

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

Back to Top
White Dave View Drop Down
Member
Member
Avatar

Joined: 03 Jun 2012
Posts: 42
Post Options Post Options   Quote White Dave Quote  Post ReplyReply Direct Link To This Post Posted: 02 Oct 2015 at 4:55pm
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?
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3463
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 02 Oct 2015 at 4:58pm
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
Back to Top
White Dave View Drop Down
Member
Member
Avatar

Joined: 03 Jun 2012
Posts: 42
Post Options Post Options   Quote White Dave Quote  Post ReplyReply Direct Link To This Post Posted: 02 Oct 2015 at 5:01pm
I just found the CtrlZooming property - setting this to czBoth fixes the issue.

This is going to save me a lot of headaches. Thanks.
Back to Top
Hannah Robyn View Drop Down
New Member
New Member
Avatar

Joined: 17 Mar 2011
Posts: 15
Post Options Post Options   Quote Hannah Robyn Quote  Post ReplyReply Direct Link To This Post Posted: 29 Feb 2016 at 3:37am
mmm - where did you find the CtrlZooming property, certainly not in the manual? I can't find it
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3463
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 29 Feb 2016 at 8:45am
The CTRLZooming property is available on panes level:

AdvChartView1.Panes[0].CtrlZooming

Kind Regards, 
Pieter
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down