Next | Prev | Up | Top | Contents | Index
xmForm
A form is a manager widget created to lay out widgets using neighborhood relationships, such as "this widget should be positioned to the left of this one." This is quite general, and allows you to define widget combinations that can resize gracefully. Figure 4-10 shows a combination of xmLabel and xmForm widgets that adjust to fit the data.
Figure 4-10 : xmLabel with xmForm
These constraints are defined in terms of attachment of each side of child widgets to the form border, to another widget, to a relative position in the form, or to the initial position of the child. When resizing occurs, children are adjusted according to these constraints.
Table 4-42 lists the resources associated with xmForm.
xmForm Resources
Resource Name | Default Value | Type or Legal Values |
---|
-fractionBase | 100 | Integer |
-horizontalSpacing | 0 | Dimension |
-rubberPositioning | False | Boolean |
-verticalSpacing | 0 | Dimension |
-sideAttachment | attach_none | attach_form attach_none attach_opposite_form attach_opposite_widget attach_position attach_self attach_widget |
-sideOffset | 0 | Integer |
-sidePosition | 0 | Integer |
-sideWidget | none | Widget |
Next | Prev | Up | Top | Contents | Index