Displaying 1 result from an estimated 1 matches for "objecteventfunction".
Did you mean:
wxobjecteventfunction
2007 Apr 13
2
who can give me an EvtHandler#connect example?
I read the api document online: http://wxruby.rubyforge.org/doc/evthandler.html
but still don''t know how to use it.
EvtHandler#connect
connect(Integer id, Integer lastId, EventType eventType,
ObjectEventFunction function,
Object userData = nil,
EvtHandler eventSink = nil)
the online doc''s example is write in C++:
frame->Connect( ID_EXIT,
EVT_COMMAND_MENU_SELECTED,
CommandEventHandler(MyFrame::OnQuit) );
is it like this?:
frame.connect(Wx::ID_EXIT, Wx::EVT_COMMAND_MENU_SEL...