ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'PUSH'
rxflags.1 = 'REPORT'
rxlabel.1 = 'Hide/Show|'
rxval.1 = ''
rxpos.1 = '1 7 6'
rx = ''
CALL RXCREATE('RX', 1, 'Main Window', 'NOCLOSE')
rx2type.1 = 'TEXT'
rx2flags.1 = 'NOBORDER'
rx2label.1 = 'Hide me!|'
rx2val.1 = ''
rx2pos.1 = '1 10 10'
rx2 = ''
CALL RXCREATE('RX2', 1, 'Child 1', 'NOCLOSE')
shown=1
DO FOREVER
CALL RXMSG()
IF rxwind = 'RX' THEN DO
IF rxid == '' THEN SIGNAL HALT
IF shown=1 THEN DO
shown=0
CALL RXSET('RX2', 'HIDE')
END
ELSE DO
shown=1
CALL RXSET('RX2', 'SHOW')
END
END
ELSE DO
shown=0
CALL RXSET('RX2', 'HIDE')
END
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|