Re: catch enter key pressed in textbox

Marvin Gülker
Mon, 29 Jun 2009 09:58:17 -0000

hendra kusuma wrote:
> Dear all,
>
> how can I catch enter key pressed event in a textbox?
>
> Regards
> Hendra

http://wxruby.rubyforge.org/doc/textctrl.html
section "Event handling".
  evt_text_enter(your_textbox_id){|event| do_whatever_you_want}
Your textbox has to specify the TE_PROCESS_ENTER style.

Marvin
--
Posted via http://www.ruby-forum.com/.