| Subject |
Re: OnClick? |
| From |
Mervyn Bick <invalid@invalid.invalid> |
| Date |
Sun, 20 Jun 2021 12:19:35 +0200 |
| Newsgroups |
dbase.getting-started |
On 2021/06/20 01:05, roy price wrote:
> Thanks Akshat,
> I'll give that a try.....and see how the input clerk (wife) goes.
> Regards
> Roy Price
>
You might be surprised how appreciative your input clerk will be if you
give her a bit more training. Subliminally of course otherwise you
might wind up in the dog box. :-)
Over the years I've had to do a fair bit of data capture and it is most
intrusive to have to move a hand from the keyboard to the mouse and then
back again. The TAB key is your friend. Even if one needs to move
past entryfields pressing the TAB key a few times is less intrusive than
using the mouse. My ideal input form is one where the mouse can be
disconnected. :-) As an aside, one needs to use this approach for
visually challenged users.
If one TABs to a pushbutton pressing the Enter key is the same as
clicking on the pushbutton.
Make sure the form opens with the first entry field having focus by
placing form.entryfield1.setFocus() in the form's form_onOpen event
handler.
You can take this a step further by setting CUAENTER off. This causes
dBASE to react to the Enter key as if it was the TAB key. Entering a
value and pressing Enter will automatically take you to the next control
in the Z-order. Great for entering numeric values from the numeric
keypad. One does, however, need to be careful with this. The Enter key
will move from entryfield to entryfield. After the last entryfield it
will move to the first pushbutton. Pressing the Enter key is the
equivalent of clicking on the pushbutton. Focus will stay on the
pushbutton. If you don't want to click the first pushbutton you will
need to use the TAB key to move on to the next pushbutton. You will
also need to use the TAB key to give the first entryfield focus ready
for the next record.
I set CUAENTER off for my own data entry forms but if there is more than
one pushbutton on the form I would hesitate to set CUAENTER off for
others. It is too easy to become confused and click the wrong pushbutton.
Mervyn.
|
|