artificially causing a field to be left in a script
Bob Sneidar
bobs at twft.com
Wed Sep 26 11:37:32 EDT 2012
Do you mean click on a button? This works for me if I click on another field or on the card background. It works the way you are seeing it only if I click on a button. We just had a thread about this. Put focus on nothing in the mouseUp handler of your button. This will have the effect of sending closefield to whatever the focused object is.
Bob
On Sep 25, 2012, at 6:45 PM, Dr. Hawkins wrote:
> TO avoid pounding the database, my card full of data fields only saves
> data if any has changed. This is done by closeField setting a flag.
>
> However, if someone changes data in one field, but then clicks to go
> on to the next data, closefield is never reached.
>
> If I can send a tab to the field with focus, it would solve the
> problem--but what is the "safest" way to do this?
>
> send tabkey to the focusedObject
>
> ?
>
> Or would be dispatch be better then send?
>
> Or am I missing something here (that odd, nagging feeling at the back
> of my head . . .)
>
> --
> Richard E. Hawkins, Esq.
> (702) 508-8462
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list