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.