Next | Prev | Up | Top | Contents | Index

xmRowColumn

The xmBulletinBoard manager places its children in one or more columns (or rows). Different packing styles, directions, and size options permit you to create aligned or unaligned rows (or columns), as in the following examples.

This example uses horizontal orientation, pack_tight packing, and specifies the width and resize characteristics of the widget:

#! /usr/sgitcl/bin/moat 
xtAppInitialize
xmRowColumn .top managed -orientation horizontal \
    -packing pack_tight -width 120 -resizeWidth false
xmPushButton .top.a managed -labelString A
xmPushButton .top.b managed -labelString BBB
xmPushButton .top.c managed -labelString CCCC
xmPushButton .top.d managed -labelString DD
. realizeWidget
. mainLoop

Figure 4-7 : xmPushButton and pack_tight This example uses horizontal orientation, pack_column packing, and explicitly requests two columns:

#! /usr/sgitcl/bin/moat 
xtAppInitialize
xmRowColumn .top managed -orientation horizontal \
    -packing pack_column -numColumns 2
xmPushButton .top.a managed -labelString A
xmPushButton .top.b managed -labelString BBB
xmPushButton .top.c managed -labelString CCCC
xmPushButton .top.d managed -labelString DD
. realizeWidget
. mainLoop

Figure 4-8 : xmPushButton and pack_column This example requests a vertical orientation:

#! /usr/sgitcl/bin/moat 
xtAppInitialize
xmRowColumn .top managed -orientation vertical
xmPushButton .top.a managed -labelString A
xmPushButton .top.b managed -labelString BBB
xmPushButton .top.c managed -labelString CCCC
xmPushButton .top.d managed -labelString DD
. realizeWidget
. mainLoop

Figure 4-9 : xmPushButton with Vertical Orientation Table 4-41 lists the resources associated with xmRowColumn.

xmRowColumn Resources
Resource NameDefault ValueType or Legal Values
-adjustLastTrueBoolean
-adjustMarginTrueBoolean
-entryAlignmentalignment_centeralignment_center
alignment_beginning
alignment_end
-entryBorder0Integer
-entryClassdynamicWidget Class
-isAlignedTrueBoolean
-isHomogeneousTrueBoolean
-labelString""String
-marginHeightInheritedDimension
-marginWidthInheritedDimension
-menuAccelerator?String
-menuHelpWidgetnoneWidget
-menuHistorynoneWidget
-menuPost""String
-mnemonicnoneKey
-mnemonicCharSetdynamicString
-numColumns1Integer
-orientationcomputedhorizontal
vertical
-packingcomputedpack_column
pack_none
pack_tight
-popupEnabledTrueBoolean
-radioAlwaysOneTrueBoolean
-radioBehaviorFalseBoolean
-resizeHeightTrueBoolean
-resizeWidthTrueBoolean
-rowColumnTypework_areamenu_bar
menu_option
menu_popup
menu_pulldown
work_area
-spacing3 or 0Dimension
-subMenuIdnoneWidget
-whichButtoncomputedInteger


Next | Prev | Up | Top | Contents | Index