[Gambas-user] About KeyPress

Dark Trorrr trorrr at ...397...
Sat Mar 20 21:15:02 CET 2004


Hi.  I'm trying to filter if the Enter key is pressed
inside a TextBox (Named as TxtLinea), but i have some
problems:
If i use this code, the message is not launched:

PUBLIC SUB TxtLinea_KeyPress()
  IF key.Return = TRUE THEN message("Se presionó")
END

But if i use this one, every key i press makes the
condition true and shows the message:

PUBLIC SUB TxtLinea_KeyPress()
  IF key.Return THEN message("Se presionó")
END

The same happens when i replace "Return" with "Enter".
What i can do?


___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es




More information about the User mailing list