ADDRESS null
OPTIONS 'TRAP'
SIGNAL ON HALT
SIGNAL ON SYNTAX
SIGNAL ON ERROR
CALL RXERR('ERROR|DISPLAY', '~!MSG')
rx = ''
rxtype.1 = 'ENTRY'
rxflags.1 = 'MULTIPLE'
rxlabel.1 = 'Type||All'
rxval.1 = 'TEXT'
rxpos.1 = '1 10 20 400 10'
text.1 = 'Hello'
text.2 = ''
CALL RXCREATE('Rx', 1, 'Entries', 'NOCLOSE|CHILD|SETVAL')
rx2 = ''
rx2type.1 = 'DROP'
rx2flags.1 = 'REPORT|NOBORDER|READONLY'
rx2label.1 = '&First | OS | |'
rx2val.1 = 'BLORT | CHOICE | LIST'
rx2pos.1 = '2 5 5 100'
blort.1 = 'This is 1'
blort.2 = 'This is 2'
blort.3 = 'This is 3'
blort.4 = 'This is 4'
blort.5 = 'This is 5'
blort.6 = 'This is 6'
blort.7 = 'This is 7'
blort.8 = ''
choice.1 = 'Mac'
choice.2 = 'Windows'
choice.3 = ''
list.1 = 'Bananas'
list.2 = 'Oranges'
list.3 = 'Grapes'
list.4 = 'Apples'
list.5 = ''
rx2accel = '1 1 _C_ F'
CALL RXCREATE('Rx2', 1, 'Drop Stuff', 'NOCLOSE|CHILD', rx2accel)
rx3 = ''
rx3type.1 = 'DROP'
rx3flags.1 = 'INDEX'
rx3label.1 = 'Type Here:|Drop Me'
rx3val.1 = 'BLORT'
rx3pos.1 = '1 10 20 100'
blort.1 = 'This is 1'
blort.2 = 'This is 2'
blort.3 = 'This is 3'
blort.4 = 'This is 4'
blort.5 = 'This is 5'
blort.6 = 'This is 6'
blort.7 = 'This is 7'
blort.8 = ''
CALL RXCREATE('Rx3', 1, 'Indexes', 'NOCLOSE|RESULT|CHILD')
rx4 = ''
rx4type.1 = 'LIST'
rx4flags.1 = 'INDEX|REPORT'
rx4label.1 = 'Items: | Fruits: | List boxes'
rx4val.1 = 'BLORT|LIST'
rx4pos.1 = '1 10 20 100 4'
blort.1 = 'One'
blort.2 = 'Two'
blort.3 = 'Three'
blort.4 = 'Four'
blort.5 = 'Five'
blort.6 = ''
list.1 = 'Bananas'
list.2 = 'Oranges'
list.3 = 'Grapes'
list.4 = 'Apples'
list.5 = ''
CALL RXCREATE('RX4', 1, 'List 1', 'NOCLOSE|RESULT|CHILD')
rx5 = ''
rx5type.1 = 'LIST'
rx5flags.1 = 'MULTIPLE|ALLNONE'
rx5label.1 = 'Items: | Fruits:|'
rx5val.1 = 'BLORT|LIST'
rx5pos.1 = '1 10 5 100 4'
blort.1 = 'One'
blort.2 = 'Two'
blort.3 = 'Three'
blort.4 = 'Four'
blort.5 = 'Five'
blort.6 = ''
list.1 = 'Bananas'
list.2 = 'Oranges'
list.3 = 'Grapes'
list.4 = 'Apples'
list.5 = 'Pears'
list.6 = 'Titties and Beer'
list.7 = ''
rx5type.2 = 'PUSH'
rx5flags.2 = 'BOOL|RESULT'
rx5label.2 = ''
rx5label.2 = 'Cancel|Ok|'
rx5val = ''
rx5pos.2 = '-1 3 210'
CALL RXCREATE('RX5', 2, 'MultiSelect Lists', 'NOCLOSE|RESULT|CHILD')
rx6 = ''
rx6type.1 = 'SLIDER'
rx6flags.1 = 'VALUE|REPORT|DELAY'
rx6label.1 = 'Range 1:|Range 2:|Try us'
rx6val.1 = '64 32'
rx6info.1 = '-100 100 0 64'
rx6pos.1 = '1 10 20 142'
rx6type.2 = 'TEXT'
rx6flags.2 = 'NOBORDER'
rx6label.2 = '0|'
rx6pos.2 = '1 10 82 84 0'
CALL RXCREATE('RX6', 2, 'Electric Slide', 'NOCLOSE|CHILD')
open = 6
DO WHILE open \= 0
err = RXMSG()
IF err == '' THEN INTERPRET 'CALL' rxwind || '_' || rxid || '_' || rxsubid
END
EXIT
rx__end:
DO i = 1 TO 2
CALL RXSAY('Group 1, entry #'||i||' is "'||text.i||'"')
END
rx2__end:
rx3__end:
rx3__esc:
rx4__end:
rx4__esc:
rx5__end:
rx5__esc:
rx6__end:
CALL RXMSG(rxwind, 'END')
open = open - 1
RETURN
rx6_1_1:
rx6_1_2:
CALL RXQUERY(rxwind, , , 1)
PARSE VAR rx6val.1 knob rx6val.1
CALL RXSET(rxwind, 'VALUE', knob - rx6val.1, 2, 1)
RETURN
rx2_1_1:
CALL RXSAY('Group 1, drop 1 choice is "'||blort.0||'"')
RETURN
rx2_1_2:
CALL RXSAY('Group 1, drop 2 choice is "'||choice.0||'"')
RETURN
rx2_1_3:
CALL RXSAY('Group 1, drop 3 choice is "'||list.0||'"')
RETURN
rx3_0_enter:
CALL RXSAY('ENTER key pressed for Indexes window')
CALL rx3__end()
rx3_1_1:
CALL RXSAY('"'||rxwind||'" Group 1, drop index is '||blort.0)
RETURN
rx4_1_1:
CALL RXSAY('Group 1, list 1 choice is "'||blort.0||'"')
RETURN
rx4_1_2:
CALL RXSAY('Group 1, list 2 choice is "'||list.0||'"')
RETURN
rx4_0_enter:
CALL RXSAY('ENTER key pressed for List 1 window')
CALL rx4__end()
CALL rx4_1_1()
CALL rx4_1_2()
RETURN
rx5_0_enter:
CALL RXSAY('ENTER key pressed for MultiSelect Lists window')
rx5_2_1:
CALL rx5__end()
DO i = 1 TO blort.0
CALL RXSAY('Group 1, list 1, choice '||i||' is "'||blort.0.i||'"')
END
DO i = 1 TO list.0
CALL RXSAY('Group 1, list 2, choice '||i||' is "'||list.0.i||'"')
END
RETURN
rx5_2_0:
CALL rx5__end()
RETURN
syntax:
CALL RXSAY(CONDITION('D') || '0D0A0D0A'x || SOURCELINE(sigl),,'Error '||condition('E')||' at line '||sigl)
halt:
error:
CALL RXMSG(,'END')
EXIT
|