Re: grid_event_call in wxEuphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message
SDPringle said...
procedure onClick_CellInTimeTable( atom this, atom event, atom it, atom event_type ) 
        printf( 1, "Cell in table clicked : ", {} ) 
        ? grid_event_cell( event ) 
end procedure 
 
set_event_handler( TimeTable, get_id( TimeTable ), wxEVT_GRID_CELL_LEFT_CLICK, routine_id("onClick_CellInTimeTable") ) 

I am trying to get the coordinates of a grid cell in an event handler in wxEuphoria. This call though only results in a crash. Anybody know how to do this?

You have the parameters for your event handler declared in the wrong order. The order should be:

  • this
  • event_type
  • id
  • event

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu