WDWTITLE (Window Title) Keyword for Display Files--Example

Figure 292 shows how to specify the WDWTITLE keyword.

Figure 292. Specifying the WDWTITLE Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R RECORD1                   WINDOW(6 15 9 30)
A N01                                  WDWTITLE((*TEXT &TTL1); (*COLOR GRN))
A  01                                  WDWTITLE((*TEXT &TTL1); (*COLOR RED))
A            FIELD1         5A  B  2  2
A            FIELD2        20A  B  8  5
A            TTL1          10A  P
A
A          R RECORD2                   WINDOW(8 20 9 30)
A                                      WDWTITLE((*TEXT &TTL2)+;
A                                               (*COLOR YLW) +
A                                               (*DSPATR RI))
A            FIELD3         5A  B  2  2
A            FIELD4        20A  B  8  5
A            TTL2          10A  P
A

If the window defined by RECORD1 is written to the display, it will have whatever text is contained within TTL1 imbedded within the top border of the window. If indicator 01 is set off, this text will be green. If indicator 01 is set on, the text will be red.

When the window defined by RECORD2 is written to the display, the text contained within TTL2 will be imbedded within the top border of the window. This text will be display in reverse image and yellow.