LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Default Settings in labwindows CVI 2017

By default, the last button that was pressed can be toggled by either the enter key or spacebar as explained in this link.

Operating Command Button Controls - NI

I need to disable all enter and space bar controls for all buttons and switches and only allow use of the mouse. How would I do this? I can't seem to find a guide on this.

0 Kudos
Message 1 of 2
(47 Views)

You can install a callback on the controls, trap EVENT_KEYPRESS events, filter eventData2 field with GetKeyPressEventVirtualKey () function and swallow all but VAL_TAB_VKEY keys. To swallow the event return 1 from the callback function.

Leaving tab key active will permit the user to tab between controls.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(22 Views)