Page 1 of 1

Bug with Manual un-zoom

Posted: Tue Mar 15, 2005 8:59 pm
by 9081031
Hi,
I have a VB app that uses the TeeChart with zooming. The native method of un-zoomig, or returning to the original chart view is to click and drag to the left. This works fine however it is not very intuitive. To improve usability, I have added so very simple code to the double-click event.
TeeChart1.zoom.undo
This works great until I have more than 2000 points. At 2001 points in the graph, when I double-click, I get a box on the screen that originates at the point of double-click and resizes to the location of the mouse, just like I had held the left mouse down and was dragging out a box. It won't go away until I single-click the chart.

Any suggestions?
Thanks in advance.

twscannell@hotmail.com

Posted: Tue Mar 15, 2005 10:01 pm
by 9081031
Ah-ha!
Don't put any code that has a doevents in the OnDouble-Click event or you will get strange behavior. I was calling a class that changes the mouse pointer and had Doevents call in it.

Problem solved.