Understanding the Click event on the AxisArrow tool

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Understanding the Click event on the AxisArrow tool

Post by BenW » Wed Oct 31, 2007 12:28 am

Hi.

I've created an AxisArrow tool and created an event handler for the Click event against the AxisArrow instance. I've also associated the AxisArrow tool with the chart instances Bottom axis. My expectation is that when I click on the left or right arrows (or perhaps anywhere on the AxisArrow), the Click event handler will be called. Well this is happening, but if I click anywhere else on the chart, this also seems to invoke the Click event handler for the AxisArrow instance.

This is causing incorrect processing when say trying to zoom on an area on the chart and as part of that operation the AxisArrow Click event handler is being invoked.

Can anyone shed some light on what might be going here, and how to configure things so that the AxisArrow Click event handler is only called when the AxisArrow is clicked upon...

thanks,
Ben.

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 Oct 31, 2007 10:29 am

Hi Ben,

Thanks for reporting. This is a bug (TF02012563) which I've added to our defect list to be fixed for future releases. There's no workaround I can think of at the moment.
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

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Wed Oct 31, 2007 3:45 pm

Righto...

...as a potential workaround, is it perhaps possible to ascertain whether or not it was the AxisArrow that was clicked upon, via some combination of using the current mouse location and the location of the AxisArrow widget?

Just a thought...

thanks,
Ben.

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 Nov 02, 2007 9:00 am

Hi Ben,

That was my first thought as well when looking for a workaround but this is not possible as AxisArrow tool doesn't include Clicked method so you don't know when this has been clicked.
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