Detect when a field changes
dunbarx at aol.com
dunbarx at aol.com
Sat Nov 16 18:23:05 EST 2013
Hi.
The typing workaround is clever, but slow. If you have even a few tens of chars, it takes too much time.
Locking the screen early on is essential, and it will help more closely match what "put" does.
Craig Newman
select after fld "MyField"
set the typingRate to 0 // no delay
Type "MyStuffHere" // instaed of put
-----Original Message-----
From: AndyP <smudge.andy at googlemail.com>
To: use-revolution <use-revolution at lists.runrev.com>
Sent: Sat, Nov 16, 2013 5:48 pm
Subject: Re: Detect when a field changes
Hi Bill,
Thought this was odd so made a little test stack... and yes you are right
and focus has no effect.
Now it seems that the textChanged meassage is only sent when Typing in a
field has happened and not when the contents of the field actualy change!
There is a way around the problem. I'm assuming you using a put to get your
contents into the field.
Try using the Type command instead. This simulates physical typing in the
field.
You can do something like this;
select after fld "MyField"
set the typingRate to 0 // no delay
Type "MyStuffHere" // instaed of put
-----
Andy Piddock
My software never has bugs. It just develops random features.
Copy the new cloud space, get your free 15GB space now:
Get Copy
Your LiveCode Work Desks - New Blog
http://livecodemydesk.blogspot.de/
PointandSee is a FREE simple but full featured under cursor colour picker /
finder.
http://www.pointandsee.co.uk - made with LiveCode
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Detect-when-a-field-changes-tp4672425p4672429.html
Sent from the Revolution - User mailing list archive at Nabble.com.
_______________________________________________
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