Re: wxEuphoria no event triggered
- Posted by Matt Lewis <matthewwalkerlewis at gm?il.c?m> Jan 24, 2008
- 538 views
Greg Haberek wrote: > > jacques deschĂȘnes wrote: > > > > What's wrong with the following code. When I click buttons no event handler > > is called. > > (snip) > So it looks like you need to do this: >
set_event_handler( Button, get_id(Button), wxEVT_COMMAND_BUTTON_CLICKED, routine_id("event_handler"))
Greg is correct. Events don't propagate up to a dialog, so you need to use the control itself as the event handler. Matt