LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

right click in event structure for Mac OS

Solved!
Go to solution

I set right click to activate an event case (with Mouse Down? function) in an event structure. This works fine in Windows7.

But when I try this in Mac 10.10. This does not work at all.

 

I connected an indicator in the "button" in the Mouse Down case and found both left click and right click returns value 1.

In Windows7, left click returns value 1 and right click returns value 2.

 

Does anyone know how to activate right click for event structure in Mac OS?

0 Kudos
Message 1 of 13
(4,867 Views)

Hello Xiang00,

 

You can visit this page to get more infomation about event structure with MAC OS.

 

http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/event_structure_components/ 

 

Regards,

Lis Villanueva.

0 Kudos
Message 2 of 13
(4,768 Views)

The only thing your link says about Mac OS is: "View other event cases by clicking the down arrow next to the case name and selecting another case from the shortcut menu.

(Windows) You also can move the cursor over the selector label and press the <Ctrl> key while moving the mouse wheel. (Mac OS X) Press the <Command> key"

 

What part of that addresses clicks behaving differently during runtime?

 

OP.  We can make an assumption about your code based on your post.  But, it'd be nice to see exactly what you're working with.  If I'm correct, you've got an event structure designed to output different values based on which mouse button is clicked.  Are you able to post that just for clarity?

0 Kudos
Message 3 of 13
(4,745 Views)

I'm not sure what mouse you use on your Mac, but traditionally there is no left and rigth button on the Mac mouse, but only one button. My iMac from 2012 has still such a mouse! Even if you have a two button mouse on your Mac, I'm afraid LabVIEW for Mac will not support that in the event structure since it is not a standard MacOS feature.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 13
(4,717 Views)

If you use a third party mouse with multiple buttons and it has suitable software, you may be able to program some combination to act like a right click. My Kensington trackball will generate right-click behavior in LabVIEW on the Mac.  The image below shows how Ihave my System Preferences for the trackball set.

 

Lynn

 

SysPrefs.png

0 Kudos
Message 5 of 13
(4,706 Views)

I'm not very familiar with Mac, so basically brainstorming here. R-click was previously emulated with Command-click, so can you look for such a button to see if it's "r-click"?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 13
(4,650 Views)

Works fine here, in LV 2009 (my latest version of LV for OS X 10.11.1).

 

It pops up the context help menu unless you DISCARD it.

 

It reports the coordinates as expected.

 

Screen Shot 2015-12-14 at 7.53.06 AM.png

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 7 of 13
(4,633 Views)

 I'm afraid LabVIEW for Mac will not support that in the event structure since it is not a standard MacOS feature.

 

Not true.

 

It hasn't been called MacOS for 15 years now.  It was supported on MacOS because it was a standard feature on MacOS.

 

Just because it wasn't REQUIRED to have a 2button mouse doesn't mean it wasn't supported.

 

It's always been supported in LV for OS X.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 8 of 13
(4,626 Views)

R-click was previously emulated with Command-click

 

 

Not true.  With one-button mice,  a right click has always been emulated with CTRL-click.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 9 of 13
(4,624 Views)

@CoastalMaineBird wrote:

R-click was previously emulated with Command-click

 Not true.  With one-button mice,  a right click has always been emulated with CTRL-click.


As i said, i'm not very familiar with Mac, it was a button+click anyway. 😛

Still, it should be possible to check if CTRL is pressed together with the mouse.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 13
(4,615 Views)