Next | Prev | Up | Top | Contents | Index

Decorative Widgets

Simple decorative widgets include xmFrame and xmSeparator. The former is simply a container widget that displays a frame around its child, using in-and-out shadowing or etching. The later is a primitive widget that looks like a flat or beveled line, used to separate items in a display. These two widget classes do not accept user input, so they have no associated actions, callbacks, or translations.

The decoration resources for xmFrame are listed in Table 4-29.

xmFrame Resources
Resource NameDefault ValueType or Legal Values
-marginWidth 0Dimension
-marginHeight 0Dimension
-shadowType dynamicshadow_in
shadow_out
shadow_etched_in
shadow_etched_out

The decoration resources for xmSeparator are listed in Table 4-30.

xmSeparator Resources
Resource NameDefault ValueType or Legal Values
-margin0Dimension
-orientationhorizontalhorizontal
vertical
-separatorTypeshadow_etched_inshadow_etched_in
shadow_etched_out
no_line
single_line
double_line
single_dashed_line
double_dashed_line

Decorative widgets inherit resources from the Core and Primitive classes, as shown in Table 4-31.

Decorative Widget Inherited Resources
Resource InheritedFrom Resource InheritedFrom
-backgroundPixmap (Core) -background (Core)
-borderColor (Core) -borderWidth (Core)
-bottomShadowColor (Primitive) -bottomShadowPixmap (Primitive)
-foreground (Primitive) -height (Core)
-mappedWhenManaged (Core) -shadowThickness (Primitive)
-topShadowColor (Primitive) -topShadowPixmap (Primitive)
-unitType (Primitive) -width (Core)
-x (Core) -y (Core)


Next | Prev | Up | Top | Contents | Index