Re: wxEuphoria no event triggered

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu