Try:

on keyDown  
  if the key = RETURN then 
    setnote
  else -- new line
    pass -- new line
  end if
end

-----Original Message-----
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?????????


[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!]

Reply via email to