sending focus to next field
richmondmathewson at gmail.com
Sat Jun 16 15:02:06 CDT 2012
On 06/16/2012 10:49 PM, Dr. Hawkins wrote:
> OK, today's kindergarten question, to which I think I knew the answer
> once upon a time (but then, i thought that I used to use "send some
> message to every field in this card" . . .).
> I want to be able to leave a field and focus to the next field, just
> as if tab were hit, from within a script. I've tried sending tab as a
> message to the field, and sending it to the card with a tick delay.
> Surely this is easy . . .
I have just made a merry little stack with 3 fields all in a row.
And a button containing this script:
put the id of the focusedObject into fOB
put (fOB + 1) into fOB
focus on fld id fOB
and, oddly enough, it shifts the focus down the line of fields, one per
Have a lovely weekend. Richmond.
More information about the use-livecode