Page 1 of 1

Techniques to manage mouse

Posted: Thu Aug 28, 2008 4:03 pm
by 8739068
I am adding a dragpoint tool to a chart where I also have the left mouse button used for panning as shown in the code snippet below

Code: Select all

DragPoint1 = new Steema.TeeChart.Tools.DragPoint();
DragPoint1 .Style = Steema.TeeChart.Tools.DragPointStyles.Y;
DragPoint1 .Chart = tchart1;
DragPoint1 .Series = points1;
tchart1.Tools.Add(_DragPoint1 );
tchart1.Panning.MouseButton = MouseButtons.Left;
tchart1.Zoom.MouseButton = MouseButtons.None;
I can only get the panning action to work if I inactivate or remove the dragpoint tool. It seems that all the left mouse events are handled by the dragpoint tool and that whatever does the panning never gets a mouse event.

It does not seem to matter where I click on the chart, even when I click/drag far away from any point that the dragpoint tool would be relevant.

Can you provide me with any thoughts or ideas how I can manage these behaviors? Is this a bug or just a limitation?

I find that the mouse cursor will change when I hover over a point that the dragpoint tool is associated with. The mouse cursor will restore to its previous cursor when I stop hovering over the point. This tells me that the tchart/tools are aware of what is going on, yet the behavior when I left mouse click and drag does not behave as expected.

Posted: Fri Aug 29, 2008 7:52 am
by narcis
Hi Mike,

This seems a bug to me. Even setting DragPoint's mouse button being different than panning button it doesn't work. I've added this defect (TF02013361) to the list to be fixed for next releases.