Specifications
Athena Widget Set libXaw 1.0.7
Widget button = XtCreateManagedWidget(name, commandWidgetClass, w,NULL, ZERO);
XtAddCallback(button, XtNcallback, func, client_data);
}
6.3. Form Widget
Application Header file <X11/Xaw/Form.h>
Class Header file <X11/Xaw/FormP.h>
Class formWidgetClass
Class Name Form
Superclass Constraint
The Form widget can contain an arbitrary number of children or subwidgets. The Form provides
geometry management for its children, which allows individual control of the position of each
child. Anycombination of children can be added to a Form. The initial positions of the children
may be computed relative tothe positions of previously created children. When the Form is
resized, it computes newpositions and sizes for its children. This computation is based upon
information provided when a child is added to the Form.
The default width of the Form is the minimum width needed to enclose the children after comput-
ing their initial layout, with a margin of defaultDistance at the right and bottom edges. If a width
and height is assigned to the Form that is too small for the layout, the children will be clipped by
the right and bottom edges of the Form.
6.3.1. Resources
When creating a Form 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
defaultDistance Thickness int 4
depth Depth int C Parent’sDepth
destroyCallback Callback XtCallbackList NULL
height Height Dimension A Enough space to contain all children
mappedWhenManaged MappedWhenManaged Boolean True
numChildren ReadOnly Cardinal R 0
screen Screen Screen R Parent’sScreen
sensitive Sensitive Boolean True
translations Translations TranslationTable NULL
width Width Dimension AEnough space to contain all children
xPosition Position 0
yPosition Position 0
115