Moved generation of code into dialog, made sure that 100% means 100% and 50% means 50%, etc, etc.
Working on getting the mouse to position the label properly.