Page 1 of 1

Understanding the Click event on the AxisArrow tool

Posted: Wed Oct 31, 2007 12:28 am
by 9787981
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.

Posted: Wed Oct 31, 2007 10:29 am
by narcis
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.

Posted: Wed Oct 31, 2007 3:45 pm
by 9787981
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.

Posted: Fri Nov 02, 2007 9:00 am
by narcis
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.