Page 1 of 1
get undoZoom-event
Posted: Fri Sep 03, 2010 7:14 am
by 15351658
Hi,
is it possible to cath an undoZoom-event, maybe as adding a listener? Or must i switch off TChart-zoom and create my own zomm by Mouseevents of the Window?
Baground of my Question is if user use undoZoom via mouse the view shoud show 110% instead of 100%.
juergen
Re: get undoZoom-event
Posted: Mon Sep 06, 2010 10:29 am
by yeray
Hi juergen,
Yes, the following code seems to work fine for me here:
Code: Select all
tChart1.addChartMotionListener(new ChartMotionListener() {
@Override
public void scrolled(ChartEvent e) {
tChart1.getHeader().setText("Scrooled");
}
@Override
public void zoomed(ChartEvent e) {
tChart1.getHeader().setText("Zoomed");
}
@Override
public void unzoomed(ChartEvent e) {
tChart1.getHeader().setText("UnZoomed");
}
});
Re: get undoZoom-event
Posted: Mon Sep 06, 2010 11:00 am
by 15351658
That's it.
Thanks
Re: get undoZoom-event
Posted: Wed Sep 25, 2013 10:17 am
by 17466531
Hello Yeray,
We are trying to get unzoom event as your example by adding a ChartMotionListener.
But the listener was never triggered.
Do you have an any idea?
We are using TeeChart SWT version 0722fg.
Thanks!
Ishan.
Re: get undoZoom-event
Posted: Wed Sep 25, 2013 3:39 pm
by yeray
Hi,
You are right. It was broken. I've just corrected for the next maintenance release.