07-30-2009 11:03 AM
All,
Just recently started using Xcontrols in my code. After working through some of the quirks, I'm really enjoying the functionality and portability. However, I've run into a problem which has me stumped. For one application, I'm developing a touch-screen user interface. However, my client has accelerated the development schedule, and the touch-screen hardware won't be available. They don't want to use a mouse (rough environment), so I'm stuck with the good old fashioned QWERTY keyboard.
I can use "Key Navigation" to set certain Boolean controls to toggle. However, I have a Boolean Xcontrol, the heart of my code's functionality, which really needs to be keyboard-enabled. Looking at the "Key Navigation" properties, it doesn't appear that I can set a "Toggle" shortcut key for the Xcontrol. I tried setting a focus shortcut key, which works just fine, but I still can't get my button to toggle as I expect.
Any thoughts or suggestions on keyboard navigation using Xcontrols? Is there a better way to do this programmatically (i.e. Event Handling)? Any feedback would be appreciated, thanks!
Mark
07-31-2009 05:32 PM
Hi MJ,
If you want to capture Keyboard clicks, you should use events. This is a good example of how to monitor for keyboard input in LabVIEW.
08-04-2009 08:41 PM
Thanks for the reply StarsHockey. Unforunately, that's not exactly what I'm looking for. I'd prefer to be able to tab to the control (or use F4 to set the focus), and then hit "Return" or "Enter" to operate the control just like any boolean. I don't know how to do this for an Xcontrol. Anyone out there wiser than me with a suggestion?
Thanks,
Mark