Tried that but no joy, no button appears on the main bitmap. Need
to add the bmap = quitprogrambutt_bmp to see it but then it doesn't work anyway even if I add the event code on to the button panel. The only thing that makes the button work is the button function code on the main panel. But this will only work with a single button. No other button is allowed to appear on the main bitmap if I have the button function code in the main bitmap (see the gpsfasetup_pan code above). It is also interesting that the event code in a button panel doesn't work either. With C-Script, a simple on_click was all that was needed to get buttons to work.