Any know of a simple approach to allowing the user to select a zoom rectangle going in any direction? The default behaviour of forcing top-left to bottom-right is causing me some problems.
TIA
Changing Zoom Behaviour
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello,
Just sent you an example by e-mail.
Just sent you an example by e-mail.
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 |
-
- Newbie
- Posts: 3
- Joined: Thu Feb 26, 2009 12:00 am
The VB example was fine, but my problem is related to the structure of my app. We have an abstraction layer between and MDI view container and the TChart control. This abstraction layer is meant to isolate the view from the underlying chart object. Using event Sinks in the View breaks this design. I'm using C++ in VS2008 so VB isn't really of much help in this area.narcis wrote:Hello,
Just sent you an example by e-mail.
Is there a way, that anyone knows of, to trap these events at the TChart Level?
TIA
Hello,
Re.
Re.
Please clarify if I've missed what you require.
Regards,
Marc Meumann
Re.
TeeChart does trap mouse events to actuate the zoom/unzoom. Zoom and Unzoom trigger their own events where you may intervene. Zoom direction, the mousedrag-direction, may be changed via Chart properties.Is there a way, that anyone knows of, to trap these events at the TChart Level?
Re.
If you wish to zoom/unzoom but not by mousedragging directly on the Chart (ie. you don't wish TeeChart to capture the zoom mousevent requests) then zoom can be disabled and you can zoom manually by code, interpreting your own means of sending the information simply by running the Axes SetMinMax methods and passing the respective Axis limits.abstraction layer is meant to isolate the view from the underlying chart object
Please clarify if I've missed what you require.
Regards,
Marc Meumann
Steema Support
-
- Newbie
- Posts: 3
- Joined: Thu Feb 26, 2009 12:00 am
Re.
Thanks. This is exactly what I was looking for. All I needed was to set the UpLeftZooms property on the Zoom Interface to true.
Thanks for the pointer.
TeeChart does trap mouse events to actuate the zoom/unzoom. Zoom and Unzoom trigger their own events where you may intervene. Zoom direction, the mousedrag-direction, may be changed via Chart properties.Is there a way, that anyone knows of, to trap these events at the TChart Level?
Thanks. This is exactly what I was looking for. All I needed was to set the UpLeftZooms property on the Zoom Interface to true.
Thanks for the pointer.