Re: wxEuphoria v0.11 on Vista - events don't work

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

Jerry Story wrote:
> 
> I have 3 programs using v0.11 that work correctly on GNU/Linux but the events
> don't work on Vista. Click on a button, nothing happens.

I tracked it out.

This (with the parent) works on Linux but not on Windows:

set_event_handler( {frmWin,btnFave}, get_id(btnFave),
  wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "FaveSF" ))

But this (without the parent) works on Windows but not on Linux:

set_event_handler( {btnFave}, get_id(btnFave),
  wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "FaveSF" ))


Do I gotta do this?

if platform() = LINUX then
    set_event_handler( {frmWin,btnFave}, get_id(btnFave),
     wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "FaveSF" ))
  else
    set_event_handler( {btnFave}, get_id(btnFave),
      wxEVT_COMMAND_BUTTON_CLICKED,routine_id( "FaveSF" ))
  end if


Or is there something better?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu