[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Focus control using the keyboard (tabbing/arrow keys/ent
[Gnumed-devel] Focus control using the keyboard (tabbing/arrow keys/enter) (?)
Mon, 21 Apr 2003 01:02:44 -0400 (EDT)
Is 'Enter' considered by GnuMeders a bastard-child when switching between
single line fields? How about the arrow keys?
Generally speaking... as a guideline I think it would be good to make
use of the arrow keys and enter for the movement between
fields. Precedents for non-tab switching are M$ Excel & PgAccess -- in
both the arrow keys and enter can be used to switch between fields.
For the BMICalc in particular I think 'Enter' should be set-up to be as an
alternative to 'Tab' because many like to enter numbers with the numeric
keypad. If your hand is on the numeric keypad, using 'Enter' to
switch fields seems to be intuitive -- at least to me.
Now you might say: Michael, What about other situations... like switching
from multiline fields?
I think there are some exceptions and multiline fields is one.
If we are going to make use of non-tab focus controls the
question is how do we implement them?
I came up with a way to do it using 'EVT_CHAR' events and 'SetFocus'
(refer to --
-- if you're curious about details). It is far from an elegant
solution... but functional and robust. Ideas of how to code this better
For those looking for an informative refresher on tabbing refer to:
Recent changes made to gmBMICalc.py
one other trick -- how to ignore fields and objects (e.g. -
|[Prev in Thread]
||[Next in Thread]|
- [Gnumed-devel] Focus control using the keyboard (tabbing/arrow keys/enter) (?),
Michael Bonert <=