Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
The REGION tag z/OS ISPF Dialog Tag Language Guide and Reference SC19-3620-00 |
|
You can further define the areas of your panel, and how you want the information in the areas arranged, with the REGION tag. Using one or more regions within a PANEL definition provides an easy way of arranging the elements on a panel. Like the PANEL and AREA tags, the REGION end tag is required. The DIR (direction) attribute of the REGION tag specifies how the elements within a region are arranged, either horizontally or vertically. The default value is VERT, which arranges the elements within the region vertically. This means that if you do not specify a horizontal region (DIR=HORIZ), or if you do not define a region at all, the panel elements are arranged vertically by default. In this example, the selection fields are arranged vertically,
because no DIR value is defined for the REGION tag.
Figure 1. Vertical region
We'll specify the HORIZ value for the region to change the layout
of the selection fields to horizontal. Figure 2 shows the result.
Figure 2. Horizontal region
In the markup for this example, we also changed the format of the
DIVIDER tags to provide additional space and a visible line between
the selection fields. We did this by specifying TYPE=SOLID and GUTTER=5
on each of the DIVIDER tags. Also the divider lines are now vertical.
That's because of the way DTL handles dividers within regions. DTL
adheres to these formatting rules for DIVIDER tags within regions:
Here is markup to show how REGION and DIVIDER tags format under
different circumstances. This example shows both horizontal and vertical
regions, as well as solid and blank dividers.
Figure 3 shows how the preceding markup formats. Figure 3. Horizontal region
This is an example of nesting regions. The data fields for entering the graduation date and field of study are arranged in a vertical region that is nested within a horizontal region. The ALIGN, DEPTH, EXTEND, INDENT, LOCATION, WIDTH, GRPBOX, and GRPWIDTH attributes allow additional formatting control. The DEPTH and EXTEND attributes are used with scrollable regions. ALIGN, INDENT, LOCATION, and WIDTH affect the placement of fields within the region and the placement of the region within the panel. GRPBOX and GRPWIDTH specify that the region should be displayed as a group box in GUI mode. The optional group box title is supplied as text following the REGION tag ending delimiter. When displayed on a host terminal, a panel defined with a group box contains the group box title, but does not have a group box border. |
Copyright IBM Corporation 1990, 2014
|