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 NameDefault ValueType or Legal Values
-fractionBase100Integer
-horizontalSpacing0Dimension
-rubberPositioningFalseBoolean
-verticalSpacing0Dimension
-sideAttachmentattach_noneattach_form
attach_none
attach_opposite_form
attach_opposite_widget
attach_position
attach_self
attach_widget
-sideOffset0Integer
-sidePosition0Integer
-sideWidgetnoneWidget


Next | Prev | Up | Top | Contents | Index