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.
Name | Description | Legal Values | Default |
orientation |
The direction in which enclosed components will be laid out. |
|
vert |
Also see common parameters .
The box tag contains tags representing the components that should be added to the box.
<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>