paste and closeField

dunbarx at aol.com dunbarx at aol.com
Mon Jul 22 00:56:21 EDT 2013


Hi.


Not sure, then, what you want. The docs do seem to be wrong in that when focus leaves the field, a closefield message is sent after a paste. And the "textChanged" message is sent immediately when text is pasted.


What specific behavior are you trying to achieve?


Craig Newman



-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Jul 21, 2013 3:12 pm
Subject: Re: paste and closeField


On Sat, Jul 20, 2013 at 8:47 PM,  <dunbarx at aol.com> wrote:
> I did not check the docs, but if I paste into a field and then click on
the card somewhere, say, a
>closefield message is sent to the field.

According to a comment in the Dictionary,
pmbrig at gmail.com
2010-12-12 at 11:35:09
Note that if you paste text into a field, the closeField message is not
sent after the focus leaves the field, ie, the field is not flagged as
having had its contents changed. The "paste" command appears to be
equivalent to "put the clipboarddata["text"] into the selection."

Hmm, and I just put traps for closeField and exitField and pasted then
tabbed.  It seems that the comment is wrong . . .

> In any case, you can always trap "textChange".

But that would be synchronous.

When someone pastes in, he's likely to add more himself before leaving 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