"focus on nothing" not resulting in closefield

dunbarx at aol.com dunbarx at aol.com
Tue Oct 8 13:14:34 EDT 2013


Richard.


Not exactly sure what you are looking to do, but couldn't you:



on textChanged

  send "closeField" to me


end textChanged


-----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

 




More information about the use-livecode mailing list