"focus on nothing" not resulting in closefield

Roger Eller roger.e.eller at sealedair.com
Tue Oct 8 13:29:21 EDT 2013


I'm sure this could be shorter, but it works.

on textChanged
   put the botRight of me into tCorner
   put  (item 1 of tCorner)+5 & "," & (item 2 of tCorner)+5 into
tOutsideThisField
  click at tOutsideThisField
end textChanged

~Roger


On Tue, Oct 8, 2013 at 1:17 PM, <dunbarx at aol.com> wrote:

> Scratch that.  I see you want to leave the field, not send the message.
>
>
> Craig
>
>
>
> -----Original Message-----
> From: Dr. Hawkins <dochawk at gmail.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Tue, Oct 8, 2013 12:25 pm
> Subject: Re: "focus on nothing" not resulting in closefield
>
>
> On Sat, Sep 21, 2013 at 11:02 AM, Phil Davis <revdev at pdslabs.net> wrote:
>
> >
> > On 9/21/13 10:31 AM, Dr. Hawkins wrote:
> >
> >> When a user clicks on something to go to another record, closeField does
> >> not get sent to the selectedField, and any changes are lost.
> >>
> >> I've tried solving this with a "focus on nothing", but that doesn't
> >> provoke
> >> the closeField message.  Shouldn't it?
> >>
> >> Is there anything other than sending a tabKey to the selectedField that
> >> works
> >
> >
> > Try "select empty
>
>
> That, though, physically selects and marks the field.
>
> I'm trying to force a closefield if the field contents have changed but the
> feield hasn't been left.   textChanged won't work in this context, as the
> usual result should only be changing when the user leaves the field
> --
> Dr. 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
>



More information about the use-livecode mailing list