artificially causing a field to be left in a script
Terry Judd
terry.judd at unimelb.edu.au
Wed Sep 26 01:40:12 EDT 2012
On 26/09/2012, at 02:59 PM, <dunbarx at aol.com>
<dunbarx at aol.com> wrote:
> Now I see.
>
>
> put this into the field script:
>
>
> on mouseLeave
> focus on nothing
> end mouseLeave
>
>
> When the field loses focus, it will trigger the "closeField" message.
Or put it in the mouseUp handler of the button, or set the traversalOn of the button to true.
Terry...
>
>
> Craig Newman
>
>
>
> -----Original Message-----
> From: Dr. Hawkins <dochawk at gmail.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Wed, Sep 26, 2012 12:39 am
> Subject: Re: artificially causing a field to be left in a script
>
>
> On Tue, Sep 25, 2012 at 8:43 PM, <dunbarx at aol.com> wrote:
>> Sorry, still not getting it. If I change the contents of a field, it matters
> not what I do next:
>> click a button or the card, navigate to another card via any means open to me,
> focus on
>> another field, whatever, the "closeField" message is sent.
>
> That had been my understanding, but . . .
>
>> What are you doing, exactly, after the text of the field is changed?
>
> I change the text of the field, and then click on a button, which runs
> a script, saves data if changed, and loads the next data.
>
> I just put the script
>
> on closefield
> beep
> breakpoint
> pass closefield
> end closefield
>
> to a field, changed contents, and pushed my button. No beep, and no closefield.
>
> Then go to it, change something, and tab, and beep & breakpoint.
>
> into a field, changed it, and clicked the button, and
>
> --
> 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
>
>
> _______________________________________________
> 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
>
Dr Terry Judd
Senior Lecturer in Medical Education
Medical Eduction Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
More information about the use-livecode
mailing list