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
Zoom IN with a rectangle from bottom right to upper left?
-
- Newbie
- Posts: 30
- Joined: Mon Feb 18, 2008 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Qwerty,
Yes, you could try disabling standard zooming features:
And then use ZoomRect:
You could define the rectangle using TChart's mouse events: MouseDown, MouseUp, etc.
Hope this helps!
Yes, you could try disabling standard zooming features:
Code: Select all
tChart1.Zoom.Allow = false;
Code: Select all
tChart1.Zoom.ZoomRect(Rect);
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 |
Instructions - How to post in this forum |