ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY')
rxtype.1 = 'MENU'
rxlabel.1 = 'MENU1|MENU2'
rxflags.1 = ''
menu1.0 = '&Test'
menu1.1 = '&Enable Test Item'
menu1.2 = '&Disable Test Item'
menu1.3 = "&Set Mark Item's Check"
menu1.4 = "&Clear Mark Item's Check"
menu1.5 = '|'
menu1.6 = 'Test Item'
menu1.7 = 'Mark Item|MARK'
menu1.8 = ''
menu2.0 = '&Test 2'
menu2.1 = 'Toggle Test Item &On/Off'
menu2.2 = "Toggle Mark Item's &Check"
menu2.3 = '|'
menu2.4 = 'Test Item'
menu2.5 = 'Mark Item|MARK'
menu2.6 = ''
rx = ''
CALL RXCREATE('RX', 1, 'Main Window', 'NOCLOSE')
DO FOREVER
CALL RXMSG()
IF rxid == '' THEN SIGNAL HALT
IF rxsubid = '1.1' THEN RXSET(, 'STATE', 1, 1, '1.6')
IF rxsubid = '1.2' THEN RXSET(, 'STATE', 0, 1, '1.6')
IF rxsubid = '1.3' THEN RXSET(, 'SHOW', , 1, '1.7')
IF rxsubid = '1.4' THEN RXSET(, 'HIDE', , 1, '1.7')
IF rxsubid = '2.1' THEN RXSET(, , , 1, '2.4')
IF rxsubid = '2.2' THEN RXSET(, , "", 1, '2.5')
END
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|