try this
on keyDown
if the key = RETURN then
setnote
else
pass
end if
end
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Richie Jindal
Sent: Sunday, September 23, 2001 3:00 PM
To: list
Subject: <lingo-l> how to submit text by pressing ENTER
HI there,
I have the following problmem:
I have a button which says post text, when the user
clicks that a text field appears for him to type the
text in
On mouseUp me
if postNoteButton= FALSE then
postNoteButton= TRUE
sendsprite(5, #postNote)
end if
end mouseUp
Now i want that when he presses enter the system goes
into another handler:
on postNote me
if postNoteButton= TRUE then
member("tt").text=""
sprite(5).member= member("tt")
sprite(5).loc= point(100,100)
sprite(5). editable= TRUE
sprite(5).puppet = TRUE
end if
on keyDown
if the key = RETURN then
setnote
end if
end
end mousedown
i tried like above, on enter it goes into the setNote
handler which is ok, but while typing into the field,
no text shows since the control seems to be trapped in
the on keydown handler only...
what shall I do in the key down handler that tells it
to let the user keep typing into the field, until he
presses ENTER?????????
any suggestions???
Thanx
Richie
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger.
http://im.yahoo.com
[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!]
[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!]
[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!]