I'm running into an issue where I need to detect when the user clicks in 'negative' space. Is there a way to do this? By negative space, I just mean any space on the ViewXY that doesn't have a trace, annotation, etc.
I have special mouseclick handlers for things mentioned above, which allows me to know: I clicked on the sampledataseries, or sampledatamarker, or annotation. I have no way of answering know what I clicked on when I do negative space (right now as close I can get is Chart_MouseClick)
Do I have any options? Is there a hittest method I'm missing that can detect if I'm on a feature?
detecting a mouse click in empty space
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: detecting a mouse click in empty space
You can use chart.GetActiveMouseOverObject(). If it returns null, it's not over anything (mouse-interactive object).
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: detecting a mouse click in empty space
Thanks, this should work great!