Series click 'problem'

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Series click 'problem'

Post by rossmc » Tue Nov 10, 2009 1:16 pm

Hi

I have a context menu for my chart which I display when the user right-clicks anywhere on the chart face by placing code in the chart.mouseup event. That works fine.

If user right-clicks a series on the chart I need to pop up a different menu. I tried to do this by adding an event handler for the lines click event. This code is also correctly called. However directly after this code is called, the chart.mouseup event still fires so I end up with both menus appearing.

Anyone know the right way around this 'problem'? I'm developing in VB.NET.

Many thanks.

rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Re: Series click 'problem'

Post by rossmc » Wed Nov 11, 2009 12:19 pm

Do I feel stupid? Yes. Simply move the code from chart.mouseup to chart.click event. Problem solved.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Series click 'problem'

Post by Yeray » Wed Nov 11, 2009 4:33 pm

Hi rossm,

I'm happy to hear that you solved it!
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply