Bug with Manual un-zoom

TeeChart for ActiveX, COM and ASP
Post Reply
Scrub
Newbie
Newbie
Posts: 5
Joined: Mon Mar 08, 2004 5:00 am
Location: Sisters, Oregon
Contact:

Bug with Manual un-zoom

Post by Scrub » Tue Mar 15, 2005 8:59 pm

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

Scrub
Newbie
Newbie
Posts: 5
Joined: Mon Mar 08, 2004 5:00 am
Location: Sisters, Oregon
Contact:

Post by Scrub » Tue Mar 15, 2005 10:01 pm

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.

Post Reply