MouseClick event for graph background
Moderator: Queue Moderators
MouseClick event for graph background
I can detect clicks on axes, titles, series, etc. through their MouseClick events. But how can I handle events where the user clicks the graph background?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: MouseClick event for graph background
Hi,
chart.ViewXY.GetMarginsRect() reports the graph edges. By calling that in chart.MouseClick or similar event you get the info.
This approach of course doesn't suit well for purposes where you want respond to mouse only when another chart object, like axis or series, is not under the mouse.
chart.ViewXY.GetMarginsRect() reports the graph edges. By calling that in chart.MouseClick or similar event you get the info.
This approach of course doesn't suit well for purposes where you want respond to mouse only when another chart object, like axis or series, is not under the mouse.
LightningChart Support Team, PT