
BOXES, FORMS, AND WINDOWS
     Several objects are provided to manage the  geometry  of  an
     xtpanel.  Box  and form objects group other objects within a
     panel. Boxes arrange the objects for you, while forms  allow
     you  to  precisely  position each object. Whether you should
     use a box or a form depends on how much control you need  to
     have  over  the  panel  layout.   Window objects are used to
     create new sub-panels.

     Box objects group other objects into boxes that are oriented
     either  vertically or horizontally. In a vertically oriented
     box, the objects are arranged in a single column, and then a
     box  is drawn around them. If space is available next to one
     object (because an earlier object is very wide) then the new
     object will be placed on the same row rather than starting a
     new one.

     A vertically oriented box (vbox) is specified as follows:

     vbox={ name=
     objecttype={ parameter=value ... }
     objecttype={ parameter=value ... }
     }

     All of the objects bounded by the starting and ending braces
     of a box will be grouped together in the box. In addition to
     vbox, there is hbox, which  is  oriented  horizontally,  and
     vpane  and  hpane,  where  the  objects  within  the box are
     separated by movable partitions (these use the Athena  paned
     widget).  There  is also box and pane; these default to vbox
     and vpane, but could be overridden from a resource file.

     Boxes can be nested. In this  way,  fairly  precise  control
     over a panel's layout can be obtained, without having to use
     a form.

     Box objects can have a name.  Two special names  are  recog-
     nized   by   the  standard  app-defaults  file;  boxes  with
     name=noborder will have no border drawn around them. If  you
     use boxes extensively to arrange objects on the panel, using
     noborder can help avoid the tunnel-like appearance of multi-
     ple  nested boxes.  Also, one of the examples makes use of a
     special box name squeezebox.  This name triggers definitions
     in  the  resource  file that "squeeze out" the annotation of
     sliders, choices, and buttons that are grouped  together  in
     such  a  box.  Boxes  may  also  use  most of the parameters
     described  in  MISCELLANEOUS  PARAMETERS,  such  as  height,
     width,  and  color. For example, the effect of name=noborder
     can also be achieved by setting borderWidth to 0 for a box.

     Form objects also group other  objects  into  a  rectangular
     area.   Unlike boxes, however, form objects require the user
     to specify the position of each object, either  relative  to
     the  upper-left  corner  of the form, or relative to another
     object in the form.  There are two ways  to  do  this.   The
     parameters  x  and  y can be used to specify the location of
     the object's upper left corner, with respect  to  the  upper
     left  corner  of  the  form.  Alternatively,  the parameters
     "fromHoriz" and "fromVert" can be used to indicated that  an
     object  is  to  be  placed relative to some other object. If
     fromHoriz or fromVert is used, then  x  or  y  may  also  be
     specified  to  give  the distance separating the object from
     the other object to which it is connected.  If fromHoriz  or
     fromVert  are  used  alone, a minimum separation of 4 pixels
     will be maintained between objects.


     It is important to note that when you use a form, the  posi-
     tion  MUST  be  specified  for  ALL objects contained in the
     form. Otherwise,  objects  may  be  placed  on  top  of  one
     another, and some may be invisible.

     The form object provides a greater degree  of  control  over
     the  panel  layout.  However, because it does not do default
     positioning in a reasonable way as the box objects  do,  the
     form  object  may yield unexpected results if not used care-
     fully. You should avoid the form object  unless  the  layout
     obtainable with boxes is not sufficiently accurate. There is
     an example of a script using a form in the  xtpanel-examples
     example  demo.  Under  the  script examples, see the example
     named "form".

     If a form contains a box, coordinates must be specified  for
     the  box  itself,  but are not needed for objects within the
     box, as the box object manages the layout within itself.

     Multi-window panels can be created using the window  object.
     A  window object creates its own sub-panel, within which you
     can include any number of objects.

     A window object is specified as follows:

     window={ name=
     objecttype={ parameter=value ... }
     objecttype={ parameter=value ... }
     }

     The top-level xtpanel object is  a  window,  named  window1,
     within  which the user-specified objects are contained. Win-
     dows, including the top-level window, have the  same  layout
     rules  as  vertically  oriented boxes. By beginning a script
     file with "form={", the user can  effectively  make  windows
     have the same layout rules as forms instead.

     Boxes, forms, and windows are only available through xtpanel
     scripts.   They  are  not  available  from the command line.
     Boxes and windows are supported in  the  xtpanel  generator,
     but not forms.
