1. Another Win32Lib Question
Is there any change I can make in Win32Lib to allow users to use the ENTER key
to move between input fields in, for example, a database screen. instead of the
awkward TAB key? This TAB key business slows down the data entry process
significantly, and requires 2 hands rather than one, which is bad news for this
particular application I'm working on.
Thanks,
Irv
2. Re: Another Win32Lib Question
On Fri, 24 Sep 1999 09:08:01 -0400, Irv Mullins <irv at ELLIJAY.COM> wrote:
>Is there any change I can make in Win32Lib to allow users to use the
ENTER key
>to move between input fields in, for example, a database screen. instead
of the
>awkward TAB key? This TAB key business slows down the data entry process
>significantly, and requires 2 hands rather than one, which is bad news for
this
>particular application I'm working on.
>
>Thanks,
>Irv
Irv
Why can't you trap the enter key while your data entry form has
the focus and translate the ENTER key into a TAB key command
Bernie
3. Re: Another Win32Lib Question
Irv Mullins wrote:
> Is there any change I can make in Win32Lib to allow
> users to use the ENTER keyto move between input fields
> in, for example, a database screen. instead of the awkward
> TAB key?
Sure. Take a look at the isTabKey function, and change VK_TAB to VK_RETURN.
That *should* take care of it. Not that in an MleText field, you will then
have to press Ctrl+Enter to exit. If you don't like that, it should be easy
enough to change the logic.
-- David Cuny
4. Re: Another Win32Lib Question
Irv Mullins wrote:
> Is there any change I can make in Win32Lib to allow users to use the=
ENTER key
> to move between input fields in, for example, a database screen. ins=
tead of the
> awkward TAB key? This TAB key business slows down the data entry pro=
cess
> significantly, and requires 2 hands rather than one, which is bad new=
s for this
> particular application I'm working on.
> =C2=A0
> Thanks,
> Irv
>
Irv,
Although you already got 2 answers, I have yet another one:
Trapping a KEYPRESS_EVENT in the input field should work too, if
it's not a multiline edit.
If key =3D ENTER then
-- go to next field, or a check routine
end if
In an MleText field, CTRL_ENTER can be used, I think.
-----
^ |
/-\<|
-----
| Gratis e-mail en meer: http://www.dolfijn.nl/
| Een product van Ilse: http://www.ilse.nl/