10-27-2009 05:47 PM
I have an app running in an environment where the operator has only a touch screen.
They are required to only enter one piece of information and everything in the app works from that one piece of data.
I use the key focus property so that when they are on that one entry field (a string), a 10-key pad (with some extra characters unique to the app) appears on the touch screen. They then use that 10-key pad to enter the number that drives the app.
This all works great.
I am writing a new app that has approximately 30 entry fields for the operator, and I want it to work with the same methodology that when focus is at one of those keys, the 10-key pad appears (again, only a touch screen).
Is there a simple way to get the key focus property for all those controls?
I do not see anything in an event case that relates to the property.
The only thing that occurs to me is to have each control key focus property as an element into a boolean array and then use the array to indicate whether the 10-key should be displayed.
Any thoughts are appreciated.
I am using LabView 2009
10-28-2009 04:09 AM
Use the Mouse Down (or Mouse Down?, or Mouse Up) event to detect the click.
You can handle all the events in a single frame and use the CtlRef terminal on the left side of the event case to push the value into the specific control which was clicked.
If you don't want to statically register for all the events, you can use dynamic event registration and wire an array with the references of all the controls into the Register For Events node to register the Mouse Down event for all of them together, but this is probably not necessary in your case.
10-28-2009 09:37 AM
Thanks, I'll give the mouse event a try.
I tried using the mouse event in the past with a listbox and I had some weird problems with that (don't remember exactly what the problem was though).