This is the latest version....Sorry, I don't detect the MPG motion yet...nor do I scale images or radio boxes...but neither does Mach4
You will need to add some switches and ensure that you copy the signal script.
Summary of Software Architecture...
The Screen Load script detects the changes in the switch settings and makes changes to the Mach4 core software settings (MPG Axis, Jog Increment settings)
The MaintTab JogTab Lua Panel Script populates the Lua Panel with the Images and RadioBoxes. This script is called by a timer event every ~200mSec and calls a panel refresh. The refresh calls the onPaint function which updates the images based upon what the Mach4 core software settings are. If you use the RadioBoxes the images will be updated based upon the settings in Mach4 core software. Note if you modify this script and pieces disappear or are jumbled you did something wrong
...I did so many times.
The MaintTab JogTab Lua Panel Script gets copied to a Lua Panel script
--Add a MainTab Tab to the screen
--Insert and scale a Lua Panel
--Update the Lua Panel script with the MaintTab JogTab Lua Panel Script
This Software is provided without warranty.
Goodluck