11-30-2015 06:56 AM
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?
Solved! Go to Solution.
12-11-2015
01:42 PM
- last edited on
05-02-2025
12:31 PM
by
Content Cleaner
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.
12-12-2015 01:37 AM - edited 12-12-2015 01:38 AM
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?
12-12-2015 11:50 AM
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.
12-12-2015 12:39 PM
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
12-14-2015 05:37 AM
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
12-14-2015 06:55 AM
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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-14-2015 06:59 AM
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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-14-2015 07:01 AM
R-click was previously emulated with Command-click
Not true. With one-button mice, a right click has always been emulated with CTRL-click.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-14-2015 07:31 AM
@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