Hi pdablue
I don't really understand the usefullness of the program because your buttons are quite big.
20 * 20 pixels, that means that you are just testing an area of 400 pixels, but you dont know if any pixel inside the ImageButton does respond or not.
Your code has a lot of subroutines, you can shorten the code a lot !
Attached the shortened code Tscreen20_20.sbp.
You can create smaller ImageButtons than 20 * 20 pixels.
Attached an example with variable ImageButton sizes Tscreen5_5.sbp.
The default value is 5, but you can change the value of the dx variable.
This program has no menu, it's just to show the smaller ImageButton.
Best regards.