Disable Touch Screen Button Right-Clicking Behavior for Running VI in LabVIEW

Updated Dec 4, 2023

Environment

Software

  • LabVIEW

The button control in LabVIEW VI is designed as a switch to turn on and off by clicking on it. It behaves as expected when you are using the mouse to click on it even when press and hold it for few seconds. However it behaves as right-clicking when you touch and hold for few seconds by using finger on the touch screen device.
 
This is an expected behavior as it is the setting of the Windows on the touch screen devices. The touch action of touch and hold in Windows is equivalent to right-clicking. To prevent the right-clicking behavior in the running VI when touch and hold to turn the switch, this touch action need to be disabled before running the VI.
 

There are two ways to disable the touch and hold equivalent to right-click touch action.
 

Method 1 : Through the Control Panel in Windows

1. Go to Control Panel>>Pen and Touch.
Control Panel.png
2. In the Pen and Touch pop up window, click Touch>>Press and hold>>Settings.
Pen and Touch.png
3. In the Press and Hold Settings pop up window, uncheck the Enable press and hold for right-clicking and press OK.
Uncheck Enable press and hold for right-clicking.png
 

Method 2 : Disable the Run-Time Shortcut Menu

1. Right-click on the button control.
2. Select Advanced>>Run-Time Shortcut Menu>>Disable.
Disable Run-Time Shortcut Menu.png