EuGTK - List: View - click event

new topic     » topic index » view thread      » older message » newer message
 lstDiet = List:View(lvDiet,{"food","amount","kitchen measure","nutrient"}) 
 
-- lstDiet has a list of foods in it: 
-- bananas ...... 
-- beets  .... 
-- Romaine lettuce ...... 
-- tomato .... 
-- etc. .... 
-- etc. ..... 
 
-- Clicking on one of them causes this event to happen. 
 
-- This is how it is done in wxEuphoria. 
procedure onClick_lstDiet(atom this, atom event_type, atom id, atom event) 
-- bunch of code 
end procedure 
set_event_handler(lstDiet, get_id(lstDiet),wxEVT_COMMAND_LIST_ITEM_SELECTED,routine_id("onCLick_lstDiet" )) 

How is it done in EuGTK?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu