Profile Picture

Tool Competition for Mouse Actions

Posted By 3 Years Ago
Author
Message
Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 0, Visits: 78
Please disregard this post. I changed the base class of my tool class from NDragTool to NTool, and the problem resolved itself.

Question Posted 3 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 0, Visits: 78
I am writing a WPF application and using the WPF control from Nevron. I have a Cartesian chart which has installed both the XAxisScrollTool and a custom tool that I have written in a class derived from NDragTool.

When my chart loads, I can scroll along the X axis using the mouse, thanks to my installation of the XAxisScrollTool. That works well. Once I perform an action, however, that gets my custom tool involved, all mouse actions are intercepted by the custom tool class derived from NDragTool, and I can no longer scroll.

Is there a way, in code, for my custom NDragTool code to say "this mouse action was sent from the scroll bar, so don't process this event"? In other words, how do I know, looking at the NMouseEventArgs sent to me, whether the mouse event was sent from the scroll bar (in which case my custom tool should not process the event) versus the chart's client area (in which case my custom tool should process the event)?



Similar Topics


Reading This Topic