>Hi all,
>
>anyone know how to lock out the RETURN key on Windows in a text
>field, so effectively a user can only type on one line and not press
>return to drop down a line?
Sure. Put some behavior like this on the text field sprite:
----
on keyDown me
end
----
This will trap keydowns, preventing them from reaching the field. If
you want keyDowns to slip through the behavior to the field you do a
'pass'. Thus, this bhv will do what you want:
----
on keyDown me
if the key <> RETURN then pass
end
----
Good luck -A.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]