Next | Prev | Up | Top | Contents | Index

xmPanedWindow

A paned window is a composite widget used to lay out several children, each in its own pane. Pane separators always contain a sash (see Figure 4-11) to allow users to change the space alloted for each widget.

#! /usr/sgitcl/bin/moat
xtAppInitialize
xmPanedWindow .top managed
xmScrolledText .top.txt managed \
        -rows 3 -editMode multi_line_edit  -value \
"This paned window has three parts:
xmScrolledText, xmScrolledList, and
xmToggleButtons inside xmRowColumn.\n\n\window{paned_window}\n"
xmScrolledList .top.list managed \
        -width 568 \
        -items {Windows, Widgets, Gadgets, Buttons} \
        -itemCount 4
xmFrame .top.f managed
xmRowColumn .top.f.rc managed \
        -orientation horizontal \
        -radioBehavior true
xmToggleButton .top.f.rc.1 managed
xmToggleButton .top.f.rc.2 managed
xmToggleButton .top.f.rc.3 managed
. realizeWidget
. mainLoop
.

Figure 4-11 : xmPanedWindow With Sashes Table 4-43 lists the resources associated with xmPanedWindow.

xmPanedWindow Resources
Resource NameDefault ValueType or Legal Values
-marginHeight3Dimension
-marginWidth3Dimension
-refigureModeTrueBoolean
-sashHeight10Dimension
-sashIndent-10Dimension
-sashShadowThicknessdynamicDimension
-sashWidth10Dimension
-separatorOnTrueBoolean
-spacing8Dimension

The -refigureMode resource indicates whether or not child widgets should be reset to their appropriate positions when the paned window is resized.

Table 4-44 lists the resources for xmPanedWindow that specify pane constraint behavior.

xmPanedWindow Constraint Resources
Resource NameDefault ValueType or Legal Values
-allowResizeTrueBoolean
-paneMaximum1000Dimension
-paneMimimum1Dimension
-skipAdjustFalseBoolean

The -skipAdjust constraint resource controls whether or not the paned window should automatically resize this pane.


Next | Prev | Up | Top | Contents | Index