z/OS ISPF Dialog Tag Language Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Figures

z/OS ISPF Dialog Tag Language Guide and Reference
SC19-3620-00

The FIG (figure) tag is yet another way you can code text that isn't formatted. It works just like the LINES tag, except you can add a ruled border above and below the figure to separate it from the rest of the panel. You can also provide a caption for the figure using the FIGCAP tag.

Like the LINES and XMP tags, the FIG tag requires an end tag.

To define the ruled borders for the figure, use the FRAME attribute of the FIG start tag. The FRAME attribute has two values, RULE, which is the default, and NONE. Because RULE is the default value, you don't need to specify this attribute if you want ruled lines above and below the figure. To create a figure without rules, specify NONE as the FRAME value.

The figure in this panel formats with a ruled border:
<!doctype dm system>
<panel name=toy2 width=57>Order a Toy
<area>
<info width=55>
<p>Type the catalog number of
the toy you want to order and
press Enter.
The number must be a 6-digit number.
<p>For example:
<xmp>
Catalog Number. . . 581678
</xmp>
<p>A description of the toy will appear.
<fig>
          ZOOM-A-GO DAREDEVIL SET

  Your kids will have hours of excitement
  playing with this full set of action toys.
  Requires 80 "AA" batteries.  Not included.
</fig>
</info>
</area>
</panel>

Here is the formatted panel:

Figure 1. Figure with rules
                       Order a Toy

 Type the catalog number of the toy you want to order
 and press Enter. The number must be a 6-digit number.

 For example:

   Catalog Number. . . 581678

 A description of the toy will appear.

 ------------------------------------------------

           ZOOM-A-GO DAREDEVIL SET

   Your kids will have hours of excitement
   playing with this full set of action toys.
   Requires 80 "AA" batteries.  Not included.

 ------------------------------------------------

 

If we wanted the figure to appear without a ruled border, we would have specified FRAME=NONE for the FIG tag.

The FIG tag also has an optional WIDTH attribute that allows you to specify how the figure is aligned in the information region. The valid values for WIDTH are PAGE and COL. PAGE, which is the default value, aligns the figure along the left margin of the information region. COL indicates that the figure is aligned along the current left margin; that is, the current margin defined by the tag the figure is nested in. This is useful, for example, for aligning figures within list items.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014