Techniques to manage mouse
Posted: Thu Aug 28, 2008 4:03 pm
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
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.
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;
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.