Specifications

Athena Widget Set libXaw 1.0.7
The Box widget provides geometry management of arbitrary widgets in a box of a specified
dimension. The children are rearranged when resizing events occur either on the Box or its chil-
dren, or when children are managed or unmanaged. The Box widget always attempts to pack its
children as tightly as possible within the geometry allowed by its parent.
Box widgets are commonly used to manage a related set of buttons and are often called Button-
Box widgets, but the children are not limited to buttons. The Box’schildren are arranged on a
background that has its own specified dimensions and color.
6.1.1. Resources
When creating a Box widget instance, the following resources are retrievedfrom the argument list
or from the resource database:
Name Class Type Notes Default Value
accelerators Accelerators AcceleratorTable NULL
ancestorSensitive AncestorSensitive Boolean D True
background Background Pixel XtDefaultBackground
backgroundPixmap Pixmap Pixmap XtUnspecifiedPixmap
borderColor BorderColor Pixel XtDefaultForeground
borderPixmap Pixmap Pixmap XtUnspecifiedPixmap
borderWidth BorderWidth Dimension 1
children ReadOnly WidgetList R NULL
colormap Colormap Colormap Parent’sColormap
depth Depth int C Parent’sDepth
destroyCallback Callback XtCallbackList NULL
height Height Dimension A see Layout Semantics
hSpace HSpace Dimension 4
mappedWhenManaged MappedWhenManaged Boolean True
numChildren ReadOnly Cardinal R 0
orientation Orientation Orientation XtorientVertical
screen Screen Screen R Parent’sScreen
sensitive Sensitive Boolean True
vSpace VSpace Dimension 4
translations Translations TranslationTable NULL
width Width Dimension Asee Layout Semantics
xPosition Position 0
yPosition Position 0
accelerators A list of event to action bindings to be executed by this widget, even
though the event occurred in another widget. (See the XToolkit Intrin-
sics — C Language Interface for details).
ancestorSensitive The sensitivity state of the ancestors of this widget. Awidget is insensi-
tive ifeither it or anyofits ancestors is insensitive.This resource should
not be changed with XtSetValues,although it may be queried.
background A pixel value which indexesthe widget’scolormap to derive the back-
ground color of the widget’swindow.
backgroundPixmap The background pixmap of this widget’swindow. Ifthis resource is set
to anything other than XtUnspecifiedPixmap,the pixmap specified will
be used instead of the background color.
borderColor A pixel value which indexesthe widget’scolormap to derive the border
color of the widget’swindow.
borderPixmap The border pixmap of this widget’swindow. Ifthis resource is set to
anything other than XtUnspecifiedPixmap,the pixmap specified will be
used instead of the border color.
109