The <box> Tag

The <box> tag creates a container for other components. The components are displayed in the order they were added, in a vertical stack or a horizontal line, depending on the value of the orientation parameter. If a component in a box is smaller than the enclosing box, the component is centered inside the extra space. Components inside a box will not be resized.

Parameters

Name Description Legal Values Default
orientation

The direction in which enclosed components will be laid out.

  • horz
  • vert

vert

Also see common parameters .

Contents

The box tag contains tags representing the components that should be added to the box.

Example

<box orientation="horz">
  <label text="Boxes"/>
  <spacer size="15" orientation="horz"/>
  <label text="of"/>
  <spacer size="15" orientation="horz"/>
  <label text="one"/>
  <spacer size="15" orientation="horz"/>
  <label text="orientation"/>
  <spacer size="15" orientation="horz"/>
  <label text="can"/>
  <spacer size="15" orientation="horz"/>
  <label text="contain"/>
  <spacer size="15" orientation="horz"/>
  <box orientation="vert">
    <label text="nested"/>
    <label text="boxes"/>
    <label text="of"/>
    <label text="another"/>
    <label text="orientation."/>
  </box>

</box>