Event procedures take 4 arguments:
procedure onPaint( atom this, atom event_type, atom id, atom event )
atom dc
dc = create( wxPaintDC, {this} )
begin_drawing(dc)
-- ... do drawing here...
end_drawing(dc)
delete_instance(dc)
end procedure
Key Events
Key events under Linux should be set with an id of -1. Also, no events will be passed until
the window has been clicked by the user.
Full listing of events as defined in wxEuphoria.e:
Set up an event handler.
ex:
procedure onclose( atom win, atom event )
exit_main()
end procedure
set_event_handler( myWindow, wxID_EXIT, wxEVT_MENU_SELECTED, routine_id("onclose"))
Called by an event handler to tell the event system that the event handler should be skipped, and the next valid handler used instead.