Game Development Community

About GuiTextEditCtrl

by BMiuritan · in General Discussion · 02/28/2006 (7:28 am) · 2 replies

Hi all,

Is possible to catch key ENTER pressed event during typing with GuiTextEditCtrl? My case is when I press key ENTER during typing a message with it, the message will be saved to array and is cleared as well. But I don't know how to do.

Sorry for my funny question.

Thank you.

#1
03/01/2006 (1:47 pm)
IIRC the AltCommand field will do the trick. Put a function call (ie onEnterPressed(); ) as the AltCommand and it will call that function when enter is pressed.
#2
03/02/2006 (4:11 am)
Thank you Owen.