> Earlier I thought I had a solution for this, but I'm not happy with what I've
> come up with. Anyone have a simpler/better solution?

You want to block returns in a *locked* text field? How is the user able to
enter a return when the field is locked?

Regardless, though, you can simply add this to your field:

on returnInField
end returnInField

on enterInField
end enterInField

If the field is unlocked (or locked but has the focus), then this will
prevent returns from being processed by the field.

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to