IanRogers Senior Member Joined: 09/12/2022 Location: United KingdomPosts: 152
Posted: 03:04pm 22 Dec 2022
LOL... it was just a simple screen that loaded a jpg from SD with a button to enter config mode..(working fine) I then placed 6 controls to access different menu options, one option to quit the program.. ( working)
The last option was to change a variable used in the main screen
some thing like this
sub entry ' remove gui controls GUI DELETE menu1,menu2,menu3,menu4,menu5 CLS 0 GUI INTERRUPT myBut, myBut ' same interrupt text 20,30, "SELECT","LM", white, black GUI NUMBERBOX nbox1 20,50, 100, 37, white, black GUI NUMBERBOX ACTIVATE nbox1 touched = 0 ' as interrupt key down had fired do if touched = 1 then ( save ctrlval and redraw previous screen ) exit sub endif loop end sub
I set the interrupt before this sub BUT the control was actually named nbox and not nbox1 I also set up the GUI INTERRUPT just befor