From: Hannu V. <vu...@ms...> - 2013-08-24 13:55:22
|
Hi! I'm working with 16x2 LCD and U/D/L/R/C buttons. I was wondering if someone has done the menus smart way. I believe it could be done with some kind of CREATE DOES> trick which makes them. I'm thinking something like this as an interface : :noname ." Top row" ; :noname ."Bottom row" ; ' up_action ' down_action ' left_action ' right_action ' center_action add-menu my_new_menu The actions could be another menus or actions for some data. Or, There could be array of structs and those items could be added there with add-menu. Anyway how this should be taken care? Currently I'm having hard time with ugly spagheti code. Best regards, Hannu Vuolasaho |