spacer

Creates space between items on a form. It can be any size specified. It is invisible.

Available options

fontinfo, itemlocation, itemnext, itemprevious, label, linespacing, size, xformsenabled

Example

This example shows a spacer item that uses the size option to define the amount of space it will occupy.

   <spacer sid="THREE_SPACER">
      <size>
         <width>1</width>
         <height>3</height>
      </size>
   </spacer>

This example shows the spacer item that uses a label to define the amount of space it will occupy. This sizing technique is useful when creating a spacer that is exactly the same size as a real label on the form.

   <spacer sid="WELCOME_SPACER">
      <label>Welcome to Information Line</label>
   </spacer>

Usage details

  1. A spacer can be sized either by giving it length and width dimensions (using size), by expanding the default size using the itemlocation option or by giving it a label. If a label is used, the spacer equals the size of the text typed into the label. The label does not appear; it is simply used to determine the spacer's size.
  2. When setting the size option of a spacer, the height and width of the spacer will be based on the average character size for the font in use (set with the fontinfo option).
  3. If you set the width for a spacer, but not the height, then the spacer will automatically grow to accommodate the text within the given width. In other words, the text will wrap to fit within the width specified, and the height will increase to accommodate the text.