Prevent excessive zoom + zoom & multiple axix

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
marc_x
Newbie
Newbie
Posts: 23
Joined: Mon Dec 01, 2008 12:00 am

Prevent excessive zoom + zoom & multiple axix

Post by marc_x » Wed Sep 21, 2011 6:23 pm

Hi,
Is there a way to prevent the user to zoom beyond a certain point. for example when the interval of the bottom axix has reached a certain value.

Is there a way to allow zooming 1 Y axes when multiple Y axes are present, my tests show so far the zooming when multiple Y axes are present only works ok on the X axis. If not what would be my options.

Thanks

marc_x
Newbie
Newbie
Posts: 23
Joined: Mon Dec 01, 2008 12:00 am

Re: Prevent excessive zoom + zoom & multiple axix

Post by marc_x » Wed Sep 21, 2011 11:00 pm

Please add to component OnBeforeZoom event

2nd question still pending

Thanks

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

Re: Prevent excessive zoom + zoom & multiple axix

Post by Narcís » Thu Sep 22, 2011 7:17 am

Hi marc_x
Is there a way to allow zooming 1 Y axes when multiple Y axes are present, my tests show so far the zooming when multiple Y axes are present only works ok on the X axis. If not what would be my options
Zooming is not supported on custom axes. Please read this FAQ item on how to zoom custom axes.

Thanks in advance.
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

marc_x
Newbie
Newbie
Posts: 23
Joined: Mon Dec 01, 2008 12:00 am

Re: Prevent excessive zoom + zoom & multiple axix

Post by marc_x » Thu Sep 22, 2011 10:22 pm

FAQ mentions Chart->IZoom which does not exists... tried with IPanning which seemed relevant with no success. couls you please update the FAQ with up to date code

Regards

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

Re: Prevent excessive zoom + zoom & multiple axix

Post by Narcís » Fri Sep 23, 2011 7:14 am

Hi marc_x,

Please try using Chart.Zoom instead of IZoom, for example:

Code: Select all

  Chart1.Zoom.X0
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