12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Composite and Constraint<strong>Widget</strong>s{<strong>Widget</strong> button = XtCreateManaged<strong>Widget</strong>(name, command<strong>Widget</strong>Class, w, NULL, ZERO);XtAddCallback(button, XtNcallback, func, client_data);}Form <strong>Widget</strong>Application Header file Class Header file Class form<strong>Widget</strong>ClassClass Name FormSuperclass ConstraintResourcesThe Form widget can contain an arbitrary number of children or subwidgets. TheForm provides geometry management for its children, which allows individual controlof the position of each child. Any combination of children can be added to aForm. The initial positions of the children may be computed relative to the positionsof previously created children. When the Form is resized, it computes new positionsand sizes for its children. This computation is based upon information providedwhen a child is added to the Form.The default width of the Form is the minimum width needed to enclose the childrenafter computing their initial layout, with a margin of defaultDistance at the rightand bottom edges. If a width and height is assigned to the Form that is too small forthe layout, the children will be clipped by the right and bottom edges of the Form.When creating a Form widget instance, the following resources are retrieved fromthe argument list or from the resource database:Name Class Type Notes Default Valueaccelerators Accelerators AcceleratorTableancestorSensitiveAncestorSensitiveNULLBoolean D Truebackground Background Pixel XtDefault-Backgroundbackground-PixmapPixmap Pixmap XtUnspecifiedPixmap108

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!