SCREEN (100, 100), 200, 100, "-Button test" PALETTE 2, 0, 0, 0: REM Dark color (black) PALETTE 3, 204, 204, 204: REM Background color (grey) PALETTE 4, 255, 255, 255: REM Foreground color (white) PALETTE 5, 255, 23, 0: REM Red color XCLS 3: REM Set Background color x1 = 140: y1 = 60: x2 = 190: y2 = 90: REM Button position SET TFON HelB, 14 SET TXCI 5: XTEXT (20, 40), "Press button to quit!": SET TXCI 2 CALL Button(x1, y1, x2, y2, "Quit", "up") 50 REM Wait until button pressed GCGET (x%, y%), ans% log% = (x1