4.11  <frame>

This container puts a frame around its child element. The frame can either consist of a single color or of image elements.

4.11.1  Attributes

Name Type Default Value Description
border-uris string list URIs of the eight graphic images building the frame (west, north, east, south, north-west, north-east, south-east, south-west).
border-width unit list 2, 2, 2, 2 Width of each frame side (left, top, right, bottom).
color color black Color of the frame.

4.11.2  Examples

<display>

  <frame id="outer_frame" color="red">
    <frame border-width="5, 5, 5, 5" color="green">
      <frame border-width="5, 5, 5, 5" color="blue">
        <frame color="yellow">

          <label value="framed text" font="Sans 3cm"/>

        </frame>
      </frame>
    </frame>
  </frame>

...

Dsp.outer_frame.border_width = [ Unit(1, IN), Unit(2, IN), 
                                 Unit(3, IN), Unit(4, IN) ]

# Likewise with the border_uris property except 
# it would then be a list of 8 strings.

</display>