Re: Creating and handling a non_GUI event

Eric Rubin
Thu, 11 Apr 2013 12:52:58 -0000

Okay, here is a minimal test program (attached).

I want my NonGuiThread to be able to change the value of the TextCtrl.
Is add_pending_event the right way to do this?

(It seems that TextMsgEvent should be an Event, not a CommandEvent,
since it''s not a GUI event, but with Event the code doesn''t
work at
all.)

Thanks,
Eric Rubin

Attachments:
http://www.ruby-forum.com/attachment/8322/event_test.rb


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