box

Specifies a rectangular box on the form. Other items may be positioned on top of boxes (using itemlocation). The purpose of box items is simply to add visual variety to the form.

Available options

bgcolor, border, borderinfo, fontinfo, itemlocation, itemnext, itemprevious, printbgcolor, printvisible, size, visible, xformsenabled

Example

The following example shows a typical box description. The box is 25 characters wide and 4 characters high. The background color is blue.

   <box sid="blue_box">
      <bgcolor>blue</bgcolor>
      <size>
         <width>25</width>
         <height>4</height>
      </size>
   </box>

Usage details

  1. The default background color of a box is transparent. To make the box more visible, change the background color.
  2. When setting the size option of a box, the height and width of the box will be based on the average character size for the font in use (set with the fontinfo option). The default font, if none is specified in the page global settings, is Helvetica 8 plain.
  3. If you are creating an XForms form, you should use the pane item rather than the box item. For more information about the pane item, refer to pane.