Techniques to manage mouse

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike Jones
Advanced
Posts: 192
Joined: Thu Feb 01, 2007 12:00 am
Contact:

Techniques to manage mouse

Post by Mike Jones » 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

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Aug 29, 2008 7:52 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply