From: Ivo Roupa Date: 2010-05-19T09:19:13+09:00 Subject: Handling Events - Help Hi all, I have crated a application with two TextCtrl boxes (One for write and the other to show the text that it's written on the first box). I try to use the "evt_text() { | event | }" but when I run the application I have two problems: When I press any key the application closes and I get this error: C:/Program Files/Ruby19/lib/ruby/gems/1.9.1/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx/accessors.rb:50:in `method_missing': undefined local variable or method `text_box_2' for # (NameError) from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:38:in `block in initialize' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `call' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `process_event' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `process_event' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `process_event' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `on_run' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `main_loop' from C:/Documentos/Ruby Scripts/Text_Boxes/lib/Text_Boxes.rb:50:in `
' The second problem: Since I'm a newbie I would like to know where can I find some help to understand events syntax... Thanks in advance Ivo Roupa -- Posted via http://www.ruby-forum.com/.