Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Procedure Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
6-105
Attribute Handling for IBM 3270 Terminals
PROCEDURE DIVISION.
:
BODY-PARAGRAPH.
:
DISPLAY BASE MENU1.
DISPLAY MENU1.
TURN REVERSE IN SCREEN-FLD1,
SCREEN-FLD2,
SCREEN-FLD3,
DEPENDING ON WS-SCREEN-STATUS.
If WS-SCREEN-STATUS equals 1, SCREEN-FLD1 is displayed in REVERSE. If WS-
SCREEN-STATUS equals 2, SCREEN-FLD2 is displayed in REVERSE, and so on. It
is not considered erroneous if WS-SCREEN-STATUS < 1 or WS-SCREEN-STATUS>3.
Control just falls through (execution continues with the next statement) and no screen
field is displayed in REVERSE.
Attribute Handling for IBM 3270 Terminals
Following are the conflicting scenarios you might encounter when you dynamically set
the display attributes by using the TURN Statement.
If you change a field’s HIDDEN attribute to a BLINK, BRIGHT, REVERSE, or
UNDERLINE attribute, there is no effect on the display.
If you change a field with a BLINK attribute to HIDDEN, the field changes to
HIDDEN.
If you change a field with a BLINK attribute to REVERSE, the field goes reverse
but it does not blink.
If you change a field with a BLINK attribute to UNDERLINE, the field is
underlined but it does not blink.
If a field is originally REVERSE and you change it to BLINK, the field only blinks
and is not reversed.
If you change a REVERSE field to UNDERLINE, then the field is underlined but
not reversed.
If you change an underlined field to HIDDEN, neither the text nor the underline is
displayed; they are hidden.
If you change an underlined field to BLINK, the underline does not appear but the
text blinks.
If you cnage a field with an UNDERLINE attribute to REVERSE, the field is
reversed but the underline does not appear
If the field initially set to top, bottom, left, right, or in the boxfield was changed to
BLINK, then only the text will blink. The lines will not blink.