LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Samuel_S

Create a Property which shows the location of the right click for graphs and charts

Status: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.

Currently we use the shortcut menu activation event to change properties of graphs and charts at Run Time, but it would be very useful to be able to figure out which section of the graph or chart the user clicked on so we can change just that portion without having to use pixel location. Having the ability to get the exact location of the mouse click and then react accordingly would be helpful. LabVIEW has this information stored somewhere because it changes the menus it shows based on the location, so we just need to make this visible natively to the users.

Sam S
Applications Engineer
National Instruments
4 Comments
tst
Knight of NI Knight of NI
Knight of NI

Personally, I don't need this at all, but I'm pretty sure you can implement this today in a round about way - add a mouse down? event, which will give you the coords and the mouse button, and make sure that event is higher up in the list than the activation event, as I'm fairly sure that means that it will be processed first. This will allow you to get the click data first and then use that in the activation event.

 

If you're talking about data inside the graph, then the graph control should also have a method which converts coords to XY values.


___________________
Try to take over the world!
X.
Trusted Enthusiast
Trusted Enthusiast

I'd love to have that. This would have saved me some time developing the two attached VIs...

As tst pointed out (thanks BTW), this Method should allow finding the targeted plot:

 

ScreenHunter_009.jpg

 

So useful but not too difficult to obtain...

X.
Trusted Enthusiast
Trusted Enthusiast

Actually, the Method above does not work in the case of a user-defined shortcut menu item. You do have to do the math. I'll post a VI to do that for the type of graph I use most (and am developing it for) at the link above...

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.