EuGTK - List: View - click event
- Posted by Jerry_Story Sep 25, 2010
- 1445 views
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?