Hi guys, 
I plan to equip my MACH3 driven mill with a control panel to have my most used functions on hard buttons. 
At the same time it would be great to have a software locking mechanism if I am not around and the machine is hot. 
Is there a possibility to lock the screen and prevent people from making changes to settings (also) using the hardware buttons without influencing the running program or general state of the machine?
I still had a 3 position key switch at hand.
AUTO - All buttons except potentiometers for manual feed and spindle override
0 - Screen locked, buttons locked
MANUAL -  All buttons plus potentiometers allowed
Thank you very much in advance! 
André