Picture Get Focus-trigger
Author: roger.wallin@abilita.fi (rogerw)
Hi, Uniface 9.7.01.02. I have a form that is used with a touch-screen. The data-input to the form is read by a code-reader and the focus should remain on the inputfield (small editbox). There is also a button which quits the form. Furthermore there are some Picture-fields and Editboxes (or NoEditBoxes) that are just used for showing data and info-pictures. To avoid that the Editboxes get focus, I have the following code in the GetFocus-triggers of the Editboxes $prompt=inputfield to put focus back on the inputfield. The same doesn't work for the pictures, ie. when the users touches a picture, the focus remains there and the inputfield won't have focus to get the next input from the code-reader. In another form (start-form), I have no button but just the inputfield and then I can solve it with "edit/nowander". Any ideas? Don't think too much about the touch-screen and code-reader, the same can be simulated with a keyboard and a mouse. I can't demand that the user should understand to put the focus back to the inputfield as it looses focus (think of ordinary people using an ATM). Regards RogerW. PS. Hope I haven't missed something easy in a hurry
.




