LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating an Event Case on a Right-Click

Solved!
Go to solution

Hello All,

 

Is it possible to set up an event case to occur on a right-click down when the cursor is over an image?  If so, please post details.


Thanks!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 5
(4,625 Views)

Yes, I think the event case for Mouse Down has a property (I think it is actually called the data node, but it is the drop down that appears on the left side of the event case) called Button which tells you which button was pressed.  Also, you can get the mouse coordinates from the event case data node and calculate whether or not the mouse was within the picture frame.  Hope this helps.  I don't have Labview, right now, so I can't create an example.

Message 2 of 5
(4,611 Views)
Solution
Accepted by topic author diarmaede

Good luck!

 

catch right click.png

0 Kudos
Message 3 of 5
(4,563 Views)
And some of the other nodes shown aloww you to qualify the action further likea right click while the shift key is being held down.

If the point of the click is to perform an action, you might also want to consider using the Mouse Up? filter event. Filter events allow you control.whether the event is propagated further.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 5
(4,489 Views)

Thanks to both of you!  The posted VI solved my problem.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 5 of 5
(4,422 Views)