Zoom IN with a rectangle from bottom right to upper left?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Alain Bolduc
Newbie
Newbie
Posts: 30
Joined: Mon Feb 18, 2008 12:00 am

Zoom IN with a rectangle from bottom right to upper left?

Post by Alain Bolduc » Mon Nov 24, 2008 9:28 pm

Hi,

it is possible to zoom in by dragging a rectangle from top left to bottom right. However, any "negative" rectangle will undo all zoom.

Is it possible to zoom by dragging a rectangle from any other corner (top right to bottom left, bottom left to upper right, bottom right to upper left)?

If not, what should I implement in order to have such a feature?

Thanks

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 Nov 25, 2008 8:04 am

Hi Qwerty,

Yes, you could try disabling standard zooming features:

Code: Select all

      tChart1.Zoom.Allow = false;
And then use ZoomRect:

Code: Select all

      tChart1.Zoom.ZoomRect(Rect);
You could define the rectangle using TChart's mouse events: MouseDown, MouseUp, etc.

Hope this helps!
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