When has a field changed?

James Hurley jhurley0305 at sbcglobal.net
Thu Oct 27 00:54:21 EDT 2011


> 
> Message: 10
> Date: Wed, 26 Oct 2011 15:05:09 -0700
> From: Pete <pete at mollysrevenge.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: When has a field changed?
> Message-ID:
> 	<CABx6j9k5s_42TG85A-HL_yMoGD9cccKtQbD=bk9rBOMaduAnGg at mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252

[snip]

>> 
>> On Oct 26, 2011, at 11:29 AM, Pete wrote:
>> 
>>> Hi Ken,
>>> This took me by surprise so I just did a test.  Pasted text into a field
>>> then clicked on another field on the card and I did get a closeField, so
>>> maybe this was a bug that has been fixed?  LC 4.6.3/OS X 10.6.8


Hi Pete,

The bug, or questionable behavior, was not that the closeField message was sent when the field is change and then the user clicks in another FIELD. That works as expected. The puzzle was when one click on a BUTTON. This did not change the focus from the changed field. It would be necessary to insert a "focus on nothing" or "select empty" in the button script to trigger the closeField message. 

(My personal preference is for "focus on nothing". Less emotional strain on the button.)

Jim Hurley



More information about the use-livecode mailing list