01-29-2025 02:24 PM
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.
01-29-2025 04:55 PM
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.