Exiting the Right Click State

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Exiting the Right Click State

Post by qcrnd » Wed Dec 03, 2008 10:32 am

Hi
We have a feature where when right clicking on a series we enable the user to change the series color using a color selection dialog.
The thing is that sometimes when the Dialog is on the series or the Ok button is on the series or chart , and user changes a series color , after the user presses with the mouse OK and we change the series color, The chart is kept in the Right Button Down state , and the chart scrolls during the mouse move even thought the right button is not down. I cant say why this happens and I cant always reproduce it.
Its as if the chart didnt receive a right button mouse UP and is still in the state where the right button is clicked and when I move the mouse over the chart the chart scrolls automatically.

My question is how can I through code , tell the chart not to be in the right click state. I want to manually reset the chart to make sure this doesnt happen.

THanks.

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

Post by Narcís » Wed Dec 03, 2008 11:39 am

Hi qcrnd,

Yes, you can use CancelMouse:

Code: Select all

			tChart1.Chart.CancelMouse = true;
Hope this helps!
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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Wed Dec 03, 2008 12:48 pm

Hi Narcis
Thanks . it works.
BTW funny that after we do some work we see that the CancelMouse becomes false. Dont know what it is we do that makes it false..

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

Post by Narcís » Wed Dec 03, 2008 1:51 pm

Hi qcrnd,

Yes, MouseDown, MouseUp, MouseMove, MouseWheel events set it to false.
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