Hi Bernie,
On Thursday, July 21, 2005, 9:26:17 PM, you wrote:
BS> I'm developing a VID form, and I can't figure out the
BS> behavior of fields when I enter data and press the TAB or
BS> ENTER keys to proceed to the next field. I want to validate
BS> the entered value, and if it's invalid, display an alert and
BS> then keep the focus on the invalid field so it may be
BS> corrected. The code below works that way (sort of) when the
BS> ENTER key is pressed in the first field, but if the TAB key is
BS> pressed instead, the focus advances to the next field,
BS> overriding my focus command.
[...]
Add a face/refocus function.
face/refocus: func [shift] [
; shift is true if this is shift-tab
; do your own refocus handling here
]
This should be enough to solve most of your issues. In the past
(View 1.2.8) there were even more problems, so that I wrote a
number of patches and a Field style that *never* handles focus
automatically. So I could validate and handle focus myself.
Regards,
Gabriele.
--
Gabriele Santilli <[EMAIL PROTECTED]> --- http://www.rebol.com/
Colella Chiara software division --- http://www.colellachiara.com/
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.