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
get undoZoom-event
Re: get undoZoom-event
Hi juergen,
Yes, the following code seems to work fine for me here:
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");
}
});
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: get undoZoom-event
That's it.
Thanks
Thanks
Re: get undoZoom-event
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.
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
Hi,
You are right. It was broken. I've just corrected for the next maintenance release.
You are right. It was broken. I've just corrected for the next maintenance release.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |