Scrollable Jump Table (dynamic) question #2333
-
hi Oliver! A great job you have done with your MUI extension! I have similar question to this (probably) #2312 I am trying to create simple tree menu like menu 10 --go to menu 11 menu 11 --go to menu 21 menu 12 --go to menu 23 I am using several Scrollable Jump Table (dynamic) like this: MUIF_U8G2_U16_LIST("ID", &selection, NULL, menu_get_str, menu_get_cnt, mui_u8g2_u16_list_goto_w1_pi), MUIF_U8G2_U16_LIST("AC", &selection2, NULL, menuAC_get_str, menu_get_cnt2, mui_u8g2_u16_list_goto_w1_pi). ... My question is: when i go to the second menu e.g. 11 and choose there "go back" (to the main menu) I am trying to zero my selection2 variable, but it does not work. //below code i do execute on going back to the main menu also do check on a loop section, it shows zero but its not when i open menu 11. Maybe you can say what is wrong. Viacheslav |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 20 replies
-
sorry, maybe i ask not very clear, i try again: if i am using Scrollable Jump Table (dynamic) like how (and where) i can change variable "selection" by programming? thanks! |
Beta Was this translation helpful? Give feedback.
-
Only one thing - if i came from the level above - going back - same way - i dont need to reset menu 11 position, So i inserted call of your clear function to the go_main_menu function:
and it works like a charm, thanks!
|
Beta Was this translation helpful? Give feedback.
Another idea is to reset the position to zero:
Then execute this before "sendSelect()"