Re: wxEuphoria wxEVT_CLOSE_WINDOW
- Posted by cklester <cklester at yahoo.com> Dec 05, 2005
- 532 views
Matt Lewis wrote: > wxEVT_CLOSE_WINDOW should work. The following 'works' for me: > > }}} <eucode> > include wxEuphoria.e > > constant > frame_Main = create( wxFrame, {0, -1, "Main"}) > > procedure byebye( atom this, atom event_type, atom id, atom event ) > ? 1/0 > end procedure > set_event_handler( frame_Main, -1, wxEVT_CLOSE_WINDOW, routine_id("byebye")) > > wxMain( frame_Main ) > </eucode> {{{ I expect a console to pop up here when I click the 'X' in the title bar to close the app, but all that happens is the program closes. I don't get the expected error message about dividing by zero. -=ck "Programming in a state of Euphoria." http://www.cklester.com/euphoria/