Profile Picture

How to distinguish objects which receive mouseclick?

Posted By Alex Efimov 14 Years Ago
Author
Message
Alex Efimov
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 5, Visits: 1
Hi.
I have a line series displayed on a chart. I've subscribed to the MouseClick event of the NChartControl instance.
When I get the event handler invoked, I perform a HitTest which returns a NHitTestResult object.
I want to know somehow if the user clicked the line or the marker point. Is there a way to get such a distinction?

Thanks in advance,
Alexander Efimov.

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Alex,
The line series will record markers and line segments as visual elements that belong to a "data point". In general all series behave like this as the lowest "precision" of the internal image map in the chart is data point - therefore the chart cannot distinguish if the item clicked is a line segment or a marker. You can easily workaround this limitation by using a second point series with the same values as the line series instead of using markers.



Best Regards,
Nevron Support Team



Alex Efimov
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 5, Visits: 1
Thank you very much for the answer.



Similar Topics


Reading This Topic