LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict "Mouse Move" Area X/Y Graph

Solved!
Go to solution

Hi,

i programmed an event structure to set a Cursor in the corresponding X/Y-Graph when I move the Mouse over it. This works fine so far, but i also have cursor legend visible in the front panel, so when I move the mouse over this part the cursor also changes his position. Is it possible to restrict the area where the event triggers to just the actual graph or is there some workaround? 

 

Best regards
mark

0 Kudos
Message 1 of 3
(3,054 Views)

To me your description is not 100% clear. Could you attach a VI which demonstrates your problem with some comments in the block diagram?

 

edit: ah, you meant that when you hover your mouse over the Graph legend, since it is part of the Graph, your Event is fired? You could change your Event, do not sign it to a Mouse movement, but maybe to a Mouse button click (or Mouse click plus alt key down)...?

0 Kudos
Message 2 of 3
(3,027 Views)
Solution
Accepted by topic author mark_wer

When converting the Mouse position to XY Coordinates, if you use the Invoke Node "Map Coords to XY" then the topmost boolean output tells you if the mouse position is within the plot area or not.

 

Shane

Message 3 of 3
(3,010 Views)