The menu system works by storing the commands associated with each button as ADAM global parameters. When a button is pressed the command associated with it is written into a temporary file IMENUCOM.ICL . This is then loaded and executed.