1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382
|
'\" t
...\" RowCol.sgm /main/11 1996/09/08 20:59:24 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl \" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl \" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "XmRowColumn" "library call"
.SH "NAME"
\fBXmRowColumn\fP \(em The RowColumn widget class
.iX "XmRowColumn"
.iX "widget class" "RowColumn"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/RowColumn\&.h>
.fi
.SH "DESCRIPTION"
.PP
The RowColumn widget is a general purpose RowColumn manager capable
of containing any widget type as a child\&.
In general, it requires no special
knowledge about how its children function and provides nothing
beyond support for several different layout styles\&. However, it can be
configured as a menu, in which case, it expects only certain children, and
it configures to a particular layout\&. The menus supported are MenuBar,
Pulldown or Popup menu panes, and OptionMenu\&.
RowColumn uses the \fBXmQTmenuSavvy\fP trait and holds the
\fBXmQTmenuSystem\fP trait\&.
.PP
The type of layout performed is controlled by how the application has set
the various layout resources\&.
It can be configured to lay out its children in either rows or
columns\&. In addition, the application can specify how the children are
laid out, as follows:
.IP " \(bu" 6
The children are packed tightly together into either rows or columns
.IP " \(bu" 6
Each child is placed in an identically sized
box (producing a symmetrical look)
.IP " \(bu" 6
A specific layout (the current \fIx\fP and \fIy\fP positions of the children
control their location)
.PP
In addition, the application has control over both the spacing that
occurs between each row and column and the margin spacing
present between the edges of the RowColumn widget and any children
that are placed against it\&.
.PP
The default \fBXmNinsertPosition\fP procedure for the RowColumn
returns the value of \fBXmNpositionIndex\fP if one has been specified
for the child\&. Otherwise, this procedure returns the number of
children in the RowColumn\&'s \fBXmNnumChildren\fP list\&.
In a MenuBar, Pulldown menu pane, or Popup menu pane the default for the
\fBXmNshadowThickness\fP resource is 2\&.
In an OptionMenu or a WorkArea, (such as a RadioBox or CheckBox) this
resource is not applicable and its use is undefined\&.
If an application wishes to place a 3-D shadow around an OptionMenu or
WorkArea, it can create the RowColumn as a child of a Frame widget\&.
.PP
In a MenuBar, Pulldown menu pane, or Popup menu pane the
\fBXmNnavigationType\fP resource is not applicable and its use is
undefined\&.
In a WorkArea, the default for \fBXmNnavigationType\fP is
\fBXmTAB_GROUP\fP\&.
In an OptionMenu the default for \fBXmNnavigationType\fP is
\fBXmNONE\fP\&.
.PP
In a MenuBar, Pulldown menu pane, or Popup menu pane the
\fBXmNtraversalOn\fP resource is not applicable and its use is
undefined\&.
In an OptionMenu or WorkArea, the default for \fBXmNtraversalOn\fP is
True\&.
.PP
If the parent of the RowColumn is a MenuShell, the
\fBXmNmappedWhenManaged\fP resource is forced to False when the widget
is realized\&.
.PP
The user can specify resources in a resource file for the automatically
created widgets and gadgets of an OptionMenu\&. The following list
identifies the names of these widgets (or gadgets) and the associated
OptionMenu areas\&.
.IP "Option Menu Label Gadget" 10
\fBOptionLabel\fP
.IP "Option Menu Cascade Button" 10
\fBOptionButton\fP
.PP
For the Popup and Pulldown Menupanes, popup and pulldown menus have
particular behaviors when the
\fB<Btn1>\fP button is pressed outside the menus\&. These behaviors
are summarized here\&.
.PP
When there is already a popped up menu, a user can either press
\fB<Btn1>\fP in the same area as the
popped up menu, or can press \fB<Btn1>\fP in another area that should
have a menu popped up\&. When \fB<Btn1>\fP is pressed in the same
area as the already popped up menu, that menu is unposted\&.
If \fB<Btn1>\fP is pressed in a different area,
the associated popup menu is posted for the new area\&. Note, however,
that if the
\fBXmNpopupHandlerCallback\fP of either \fBXmManager\fP or
\fBXmPrimitive\fP is available, then the callback may override these
default behaviors\&.
.PP
For pulldown menus, a user can press \fB<Btn1>\fP on the
Cascade button to post the pulldown menu, then click on it again\&. Upon the
second click, the pulldown menu is unposted\&.
.PP
Popup menus are not allowed to have NULL parents\&.
.SS "Tear-off Menus"
.PP
Pulldown and Popup menu panes support tear-off menus, which enable the
user to retain a menu pane on the display to facilitate subsequent
menu selections\&. A menu pane that can be torn-off is identified by
a tear-off button that spans the width of the menu pane and displays
a dashed line\&. A torn-off menu pane contains a window manager system
menu icon and a title bar\&. The window title displays the label of the
cascade button that initiated the action when the label type is
\fBXmSTRING\fP\&. If the label contains a pixmap the window title is
empty\&. A tear-off menu from a Popup menu pane also displays
an empty title\&.
Tear-off menus should not be shared\&.
.PP
The user can tear off a menu pane using the mouse or keyboard\&.
Clicking \fB<Btn1>\fP or pressing \fB<osfActivate>\fP (or \fB<osfSelect>\fP)
on the tear-off button, tears off the menu pane at the current
position\&. Pressing \fB<Btn2>\fP on the tear-off button tears off the
menu pane and allows the user to drag the torn-off menu to a new
position designated by releasing the mouse button\&. Tearing off a
menu pane unposts the current active menu\&. Only one tear-off copy
for each menu pane is allowed\&. Subsequent tear-off actions of a
torn menu pane unpost the existing copy first\&.
.PP
The name of the tear-off button of a torn-off menu pane is
\fBTearOffControl\fP\&. The name can be used to set resources in a resource
file\&. An application can also obtain the tear-off button itself using
\fBXmGetTearOffControl\fP and then set resource values by calling
\fBXtSetValues\fP\&.
.PP
The tear-off button has Separator-like behavior\&. Its appearance can be
specified with the following tear-off button resources:
\fBXmNbackground\fP, \fBXmNbackgroundPixmap\fP,
\fBXmNbottomShadowColor\fP, \fBXmNforeground\fP, \fBXmNheight\fP,
\fBXmNmargin\fP, \fBXmNseparatorType\fP, \fBXmNshadowThickness\fP, and
\fBXmNtopShadowColor\fP\&. Refer to the \fBXmSeparator\fP reference
page for a complete description of each of these resources\&.
.PP
The \fBXmNtearOffModel\fP, \fBXmNtearOffMenuActivateCallback\fP, and
\fBXmNtearOffMenuDeactivateCallback\fP
are RowColumn resources that affect tear-off menu behavior\&.
The \fBXmNtearOffTitle\fP resource enables the application to specify
the tear-off menu\&'s title if the menu is torn off\&.
.PP
By default, menus do not tear off\&. Setting the
\fBXmNtearOffModel\fP resource to \fBXmTEAR_OFF_ENABLED\fP
enables tear-off functionality\&.
There is no resource converter
preregistered for \fBXmNtearOffModel\fP\&. To allow tear-off
functionality to be enabled through the resource database, call the
function \fBXmRepTypeInstallTearOffModelConverter\fP\&.
.PP
Tear-off menu focus policy follows standard window
manager policy\&. It is recommended that the
\fBstartupKeyFocus\fP and \fBautoKeyFocus\fP
\fBmwm\fP resources be set to True\&.
.SS "Descendants"
.PP
RowColumn automatically creates the descendants shown in the
following table\&.
An application can use \fBXtNameToWidget\fP to gain access
to the named descendant\&. In addition, a user or an application
can use the named descendant when specifying resource values\&.
.TS
tab() box;
l| l| l.
\fBNamed Descendant\fP\fBClass\fP\fBIdentity\fP
___
=
___
\fBOptionButton\fP\fBXmCascadeButtonGadget\fPoption menu button
___
\fBOptionLabel\fP\fBXmLabelGadget\fPoption menu label
___
\fBTearOffControl\fPsubclass of \fBXmPrimitive\fPT{
tear-off button of torn-off menu pane
T}
___
.TE
.SS "Classes"
.PP
RowColumn inherits behavior, resources, and traits from \fBCore\fP,
\fBComposite\fP,
\fBConstraint\fP, and \fBXmManager\fP classes\&.
.PP
The class pointer is \fBxmRowColumnWidgetClass\fP\&.
.PP
The class name is \fBXmRowColumn\fP\&.
.SS "New Resources"
.PP
The following table defines a set of widget resources used by the programmer
to specify data\&. The programmer can also set the resource values for the
inherited classes to set attributes for this widget\&. To reference a
resource by name or by class in a \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
values for a resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP prefix and use
the remaining letters (in either lowercase or uppercase, but include any
underscores between words)\&.
The codes in the access column indicate if the given resource can be
set at creation time (C),
set by using \fBXtSetValues\fP (S),
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmRowColumn Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNadjustLastXmCAdjustLastBooleanTrueCSG
_____
XmNadjustMarginXmCAdjustMarginBooleanTrueCSG
_____
XmNentryAlignmentXmCAlignmentunsigned charXmALIGNMENT_BEGINNINGCSG
_____
XmNentryBorderXmCEntryBorderDimension0CSG
_____
XmNentryCallbackXmCCallbackXtCallbackListNULLC
_____
XmNentryClassXmCEntryClassWidgetClassdynamicCSG
_____
XmNentryVerticalAlignmentXmCVerticalAlignmentunsigned charXmALIGNMENT_CENTERCSG
_____
XmNisAlignedXmCIsAlignedBooleanTrueCSG
_____
XmNisHomogeneousXmCIsHomogeneousBooleandynamicCG
_____
XmNlabelStringXmCXmStringXmStringNULLC
_____
XmNmapCallbackXmCCallbackXtCallbackListNULLC
_____
XmNmarginHeightXmCMarginHeightDimensiondynamicCSG
_____
XmNmarginWidthXmCMarginWidthDimensiondynamicCSG
_____
XmNmenuAcceleratorXmCAcceleratorsStringdynamicCSG
_____
XmNmenuHelpWidgetXmCMenuWidgetWidgetNULLCSG
_____
XmNmenuHistoryXmCMenuWidgetWidgetNULLCSG
_____
XmNmenuPostXmCMenuPostStringNULLCSG
_____
XmNmnemonicXmCMnemonicKeySymNULLCSG
_____
XmNmnemonicCharSetXmCMnemonicCharSetStringXmFONTLIST_DEFAULT_TAGCSG
_____
XmNnumColumnsXmCNumColumnsshort1CSG
_____
XmNorientationXmCOrientationunsigned chardynamicCSG
_____
XmNpackingXmCPackingunsigned chardynamicCSG
_____
XmNpopupEnabledXmCPopupEnabledintXmPOPUP_KEYBOARDCSG
_____
XmNradioAlwaysOneXmCRadioAlwaysOneBooleanTrueCSG
_____
XmNradioBehaviorXmCRadioBehaviorBooleanFalseCSG
_____
XmNresizeHeightXmCResizeHeightBooleanTrueCSG
_____
XmNresizeWidthXmCResizeWidthBooleanTrueCSG
_____
XmNrowColumnTypeXmCRowColumnTypeunsigned charXmWORK_AREACG
_____
XmNspacingXmCSpacingDimensiondynamicCSG
_____
XmNsubMenuIdXmCMenuWidgetWidgetNULLCSG
_____
XmNtearOffMenuActivateCallbackXmCCallbackXtCallbackListNULLC
_____
XmNtearOffMenuDeactivateCallbackXmCCallbackXtCallbackListNULLC
_____
XmNtearOffModelXmCTearOffModelunsigned charXmTEAR_OFF_DISABLEDCSG
_____
XmNtearOffTitleXmCTearOffTitleXmStringNULLCSG
_____
XmNunmapCallbackXmCCallbackXtCallbackListNULLC
_____
XmNwhichButtonXmCWhichButtonunsigned intdynamicCSG
_____
.TE
.IP "\fBXmNadjustLast\fP" 10
Extends the last row of children to the bottom edge of RowColumn (when
\fBXmNorientation\fP is \fBXmHORIZONTAL\fP) or extends the last column to the
right edge of RowColumn (when \fBXmNorientation\fP is \fBXmVERTICAL\fP)\&.
Setting \fBXmNadjustLast\fP to False disables this feature\&.
.IP "\fBXmNadjustMargin\fP" 10
Specifies whether the inner minor margins of all
items contained within the RowColumn widget are
forced to the same value\&. The inner minor margin
corresponds to the \fBXmNmarginLeft\fP, \fBXmNmarginRight\fP,
\fBXmNmarginTop\fP,
and \fBXmNmarginBottom\fP resources supported by \fBXmLabel\fP and
\fBXmLabelGadget\fP\&.
.IP "" 10
A horizontal orientation causes \fBXmNmarginTop\fP and
\fBXmNmarginBottom\fP for all items in a particular row to be forced to the
same value; the value is the largest margin specified
for one of the Label items\&.
.IP "" 10
A vertical orientation causes
\fBXmNmarginLeft\fP and \fBXmNmarginRight\fP for all items in a particular
column to be forced to the same value; the value is the largest
margin specified for one of the Label items\&.
.IP "" 10
This keeps all text within each row or column
lined up with all other text in its row or column\&.
If \fBXmNrowColumnType\fP is either \fBXmMENU_POPUP\fP or
\fBXmMENU_PULLDOWN\fP and this resource is True, only button children
have their margins adjusted\&.
.IP "\fBXmNentryAlignment\fP" 10
Specifies the alignment type for children that are subclasses of
\fBXmLabel\fP or \fBXmLabelGadget\fP when \fBXmNisAligned\fP is enabled\&.
The following are textual alignment types:
.RS
.IP " \(bu" 6
\fBXmALIGNMENT_BEGINNING\fP (default)
.IP " \(bu" 6
\fBXmALIGNMENT_CENTER\fP
.IP " \(bu" 6
\fBXmALIGNMENT_END\fP
.RE
.IP "" 10
See the description of \fBXmNalignment\fP in the \fBXmLabel\fP(3)
reference page for an explanation of these actions\&.
.IP "\fBXmNentryBorder\fP" 10
Imposes a uniform border width upon all RowColumn\&'s children\&.
The default value is 0 (zero), which disables the feature\&.
.IP "\fBXmNentryCallback\fP" 10
Disables the \fBXmNactivateCallback\fP and \fBXmNvalueChangedCallback\fP
callbacks for all CascadeButton, DrawnButton, PushButton, and
ToggleButton widgets and gadgets contained within the RowColumn widget\&.
If the application supplies this resource, the \fBXmNactivateCallback\fP
and \fBXmNvalueChangedCallback\fP callbacks are then revectored to the
\fBXmNentryCallback\fP callbacks\&.
This allows an application to supply a single callback routine for
handling all items contained in a RowColumn widget\&.
The callback reason is \fBXmCR_ACTIVATE\fP\&.
If the application does not supply this resource, the
\fBXmNactivateCallback\fP and \fBXmNvalueChangedCallback\fP
callbacks for each item in the RowColumn widget work as normal\&.
.IP "" 10
The application must supply this resource when this widget is created\&.
Changing this resource using the \fBXtSetValues\fP is not
supported\&.
.IP "\fBXmNentryClass\fP" 10
Specifies the only widget class that can be added
to the RowColumn widget; this resource is meaningful only when the
\fBXmNisHomogeneous\fP resource is set to True\&.
Both widget and gadget variants of the specified class may be added to
the widget\&.
.IP "" 10
When \fBXmCreateRadioBox\fP is called or when \fBXmNrowColumnType\fP is
set to \fBXmWORK_AREA\fP and \fBXmNradioBehavior\fP is True, the default
value of \fBXmNentryClass\fP is
\fBxmToggleButtonGadgetClass\fP\&.
When \fBXmNrowColumnType\fP is set to \fBXmMENU_BAR\fP, the value of
\fBXmNentryClass\fP is forced to \fBxmCascadeButtonWidgetClass\fP\&.
.IP "\fBXmNentryVerticalAlignment\fP" 10
Specifies the type of vertical alignment for children that are
subclasses of \fBXmLabel\fP, \fBXmLabelGadget, and\fP \fBXmText\fP\&.
This resource is invalid if \fBXmNorientation\fP is \fBXmVERTICAL\fP
and \fBXmNpacking\fP is \fBXmPACK_TIGHT\fP, because this layout
preserves variable heights among the children\&. The vertical alignment
types include:
.RS
.IP "\fBXmALIGNMENT_BASELINE_BOTTOM\fP" 10
Causes the bottom baseline of all
children in a row to be aligned\&.
This resource is applicable only when all children in a row
contain textual data\&.
.IP "\fBXmALIGNMENT_BASELINE_TOP\fP" 10
Causes the top baseline of all
children in a row to be aligned\&.
This resource is applicable only when all children in a
row contain textual data\&.
.IP "\fBXmALIGNMENT_CONTENTS_BOTTOM\fP" 10
Causes the bottom of the
contents (text or
pixmap) of all children in a row to be aligned\&.
.IP "\fBXmALIGNMENT_CENTER\fP" 10
Causes the center of all children in a row to be
aligned\&.
.IP "\fBXmALIGNMENT_CONTENTS_TOP\fP" 10
Causes the top of the contents (text or
pixmap) of all children in a row to be aligned\&.
.RE
.IP "\fBXmNisAligned\fP" 10
Specifies text alignment for each item within the RowColumn widget;
this applies only to items that are subclasses of
\fBXmLabel\fP or \fBXmLabelGadget\fP\&.
However, if the item is a Label widget or gadget and its parent is either
a Popup menu pane or a Pulldown menu pane, alignment is not
performed; the Label is treated as the
title within the
menu pane, and the alignment
set by the application is not overridden\&.
\fBXmNentryAlignment\fP controls the type of textual alignment\&.
.IP "\fBXmNisHomogeneous\fP" 10
Indicates whether the RowColumn
widget should enforce exact homogeneity among the items
it contains; if this resource is set to True, only the widgets that are
of the class indicated by \fBXmNentryClass\fP
are allowed as children of the RowColumn widget\&.
This is most often used when creating a MenuBar\&.
Attempting to insert a child that is not a member of the
specified class generates a warning message\&.
.IP "" 10
In a MenuBar, the value of \fBXmNisHomogeneous\fP is forced to True\&.
In an OptionMenu, the value is forced to False\&.
When \fBXmCreateRadioBox\fP is called the default value is True\&.
Otherwise, the default value is False\&.
.IP "\fBXmNlabelString\fP" 10
When \fBXmNrowColumnType\fP is set to \fBXmMENU_OPTION\fP,
this resource points to a text string that displays the label with
respect to the selection area\&. The positioning of the label relative to the
selection area depends on the layout
direction in the horizontal orientation\&.
This resource is not meaningful for all other RowColumn types\&.
If the application wishes to change the label after creation, it must get the
LabelGadget ID (\fBXmOptionLabelGadget\fP) and call \fBXtSetValues\fP on the
LabelGadget directly\&. The default value is no label\&.
.IP "\fBXmNmapCallback\fP" 10
Specifies a widget-specific callback function that is
invoked when the window associated with the RowColumn widget
is about to be mapped\&. The callback reason is \fBXmCR_MAP\fP\&.
.IP "\fBXmNmarginHeight\fP" 10
Specifies the amount of blank space between the top
edge of the RowColumn widget and the first item in each column,
and the bottom edge of the RowColumn widget and the last item
in each column\&.
The default value is 0 (zero) for Pulldown and Popup menu panes, and 3
pixels for other RowColumn types\&.
.IP "\fBXmNmarginWidth\fP" 10
Specifies the amount of blank space between the left
edge of the RowColumn widget and the first item in each row,
and the right edge of the RowColumn widget and the last item in
each row\&.
The default value is 0 (zero) for Pulldown and Popup menu panes, and 3
pixels for other RowColumn types\&.
.IP "\fBXmNmenuAccelerator\fP" 10
This resource is useful only when the RowColumn widget has been configured
to operate as a Popup menu pane or a MenuBar\&.
The format of this resource is similar to the left side specification
of a translation string, with the limitation that it must specify a key
event\&.
For a Popup menu pane, when the accelerator is typed by the user, the Popup
menu pane is posted\&.
For a MenuBar, when the accelerator is typed by the user, the first item
in the MenuBar is highlighted, and traversal is enabled in the
MenuBar\&.
The default for a Popup menu pane is \fB<osfMenu>\fP\&.
The default for a MenuBar is \fB<osfMenuBar>\fP\&.
Setting the \fBXmNpopupEnabled\fP resource to False disables
the accelerator\&.
.IP "\fBXmNmenuHelpWidget\fP" 10
Specifies the widget ID for the CascadeButton, which is treated as
the Help widget if \fBXmNrowColumnType\fP is set to \fBXmMENU_BAR\fP\&.
Which corner of the MenuBar the Help widget is placed at depends on
the \fBXmNlayoutDirection\fP resource of the widget\&.
If the RowColumn widget is any type other than \fBXmMENU_BAR\fP,
this resource is not meaningful\&.
.IP "\fBXmNmenuHistory\fP" 10
Specifies the widget ID of the last menu entry to be activated\&. It is
also useful for specifying the current selection for an OptionMenu\&. If
\fBXmNrowColumnType\fP is set to \fBXmMENU_OPTION\fP, the specified
menu item is positioned under the cursor when the menu is displayed\&.
.IP "" 10
If the RowColumn widget has the \fBXmNradioBehavior\fP resource set to
True,
the widget field associated with this resource
contains the widget ID of the last ToggleButton or ToggleButtonGadget
to change from unselected to selected\&.
The default value is the widget ID of the first child in
the widget\&.
.IP "\fBXmNmenuPost\fP" 10
Specifies an X event description indicating a button event that posts a menu
system\&.
The default for \fBXmMENU_POPUP\fP is \fBBMenu Press\fP\&.
The default for \fBXmMENU_OPTION\fP, \fBXmMENU_BAR\fP, and
\fBXmWORK_AREA\fP is \fB<Btn1>\fP \fBPress\fP\&.
The \fBXmNmenuPost\fP resource for pulldowns should be consistent with that of
the top-level parent menu (although the event type is ignored)\&.
Setting this resource to \fBBTransfer Press\fP will conflict with drag and drop
operations, which use \fBBTransfer Press\fP as a default button binding\&.
Therefore, this resource cannot be \fBBTransfer Press\fP\&.
.IP "\fBXmNmnemonic\fP" 10
This resource is useful only when \fBXmNrowColumnType\fP is
set to \fBXmMENU_OPTION\fP\&.
It specifies a keysym for a key that, when pressed by the user along with
the \fBMAlt\fP modifier, posts
the associated Pulldown menu pane\&.
The first character in the OptionMenu label string that exactly matches
the mnemonic in the character set specified in \fBXmNmnemonicCharSet\fP
is underlined\&.
The user can post the menu by pressing either the shifted or the
unshifted mnemonic key\&.
The default is no mnemonic\&.
.IP "\fBXmNmnemonicCharSet\fP" 10
Specifies the character set of the mnemonic for an OptionMenu\&.
The default is \fBXmFONTLIST_DEFAULT_TAG\fP\&.
If the RowColumn widget is any type other than \fBXmMENU_OPTION\fP,
this resource is not meaningful\&.
.IP "\fBXmNnumColumns\fP" 10
Specifies the number of minor dimension extensions
that are made to accommodate the entries; this
attribute is meaningful only when \fBXmNpacking\fP is set to
\fBXmPACK_COLUMN\fP\&.
.IP "" 10
For vertically oriented RowColumn widgets, this attribute
indicates how many columns are built; the number of
entries per column is adjusted to maintain this
number of columns, if possible\&.
.IP "" 10
For horizontally oriented RowColumn widgets, this attribute
indicates how many rows are built\&.
.IP "" 10
The default value is 1\&.
In an OptionMenu the value is forced to 1\&.
The value must be greater than 0 (zero)\&.
.IP "\fBXmNorientation\fP" 10
Determines whether RowColumn layouts are row-major or column-major\&.
In a column-major layout, the children of the RowColumn
are laid out in
columns within the widget\&. In a row-major layout the children of
the RowColumn are laid out in rows\&. The direction of the horizontal
layout in the row-major layout (from left or right), and the wrapping in
the column-major layout (vertical), depend on the
\fBXmNlayoutDirection\fP resource of the widget\&.
The \fBXmVERTICAL\fP resource value
selects a column-major layout\&.
\fBXmHORIZONTAL\fP selects a row-major layout\&.
.IP "" 10
When creating a MenuBar or an OptionMenu, the default is
\fBXmHORIZONTAL\fP\&.
Otherwise, the default value is \fBXmVERTICAL\fP\&.
The results of specifying a value of \fBXmVERTICAL\fP for a MenuBar are
undefined\&.
.IP "\fBXmNpacking\fP" 10
Specifies how to pack the items contained within a
RowColumn widget\&. This can be set to \fBXmPACK_TIGHT, XmPACK_COLUMN\fP or \fBXmPACK_NONE\fP\&. When a RowColumn widget
packs the items it contains, it determines its major
dimension using the value of the \fBXmNorientation\fP resource\&.
.IP "" 10
\fBXmPACK_TIGHT\fP indicates that given the current major
dimension (for example, vertical if \fBXmNorientation\fP is \fBXmVERTICAL\fP), entries
are placed one after the other until
the RowColumn widget must wrap\&. RowColumn wraps when there is no room left
for a complete child in that dimension\&.
Wrapping occurs
by beginning a new row or column in the next available
space\&. Wrapping continues, as often as necessary, until
all of the children are laid out\&.
In the vertical dimension (columns), boxes are set to the same width; in the
horizontal dimension (rows), boxes are set to the same depth\&.
Each
entry\&'s position in the major dimension is left unaltered (for example,
\fBXmNy\fP is left unchanged when \fBXmNorientation\fP is \fBXmVERTICAL\fP); its
position in the minor
dimension is set to the same value as the greatest entry
in that particular row or column\&. The position in the minor
dimension of any particular row or column is independent
of all other rows or columns\&.
.IP "" 10
\fBXmPACK_COLUMN\fP indicates that all entries are placed in
identically sized boxes\&. The boxes are based on the largest height
and width values of all the children widgets\&.
The value of the \fBXmNnumColumns\fP
resource determines how many boxes are placed in the
major dimension, before extending in the minor dimension\&.
.IP "" 10
\fBXmPACK_NONE\fP indicates that no packing is performed\&.
The \fIx\fP and \fIy\fP attributes of each entry are left alone, and
the RowColumn widget attempts to become large enough to enclose all
entries\&.
.IP "" 10
When \fBXmCreateRadioBox\fP is called or when \fBXmNrowColumnType\fP
is set to \fBXmWORK_AREA\fP and \fBXmNradioBehavior\fP is True, the
default value of \fBXmNpacking\fP is \fBXmPACK_COLUMN\fP\&.
In an OptionMenu the value is initialized to \fBXmPACK_TIGHT\fP\&.
Otherwise, the value defaults to \fBXmPACK_TIGHT\fP\&.
.IP "\fBXmNpopupEnabled\fP" 10
Allows the menu system
to enable keyboard input (accelerators and mnemonics) defined for the Popup
menu pane and any of its submenus\&.
The Popup menu pane needs to be informed whenever its accessibility to the user
changes because posting of the Popup menu pane is controlled by the
application\&.
This resource can take four values, including:
.RS
.IP "\fBXmPOPUP_KEYBOARD\fP" 10
Specifies that the keyboard
input\(emaccelerators and mnemonics\(emdefined for the Popup menu pane
and any of its submenus is enabled\&. This is the default\&.
.IP "\fBXmPOPUP_DISABLED\fP" 10
Specifies that the keyboard input is disabled\&.
.IP "\fBXmPOPUP_AUTOMATIC\fP" 10
Specifies that the keyboard is enabled for automatic popup menus\&.
.IP "\fBXmPOPUP_AUTOMATIC_RECURSIVE\fP" 10
Specifies that the keyboard is enabled for recursive automatic popup menus\&.
.RE
.IP "\fBXmNradioAlwaysOne\fP" 10
If True, forces the active ToggleButton or ToggleButtonGadget
to be automatically selected after having
been unselected (if no other toggle was activated)\&.
If False, the active toggle may be unselected\&.
The default value is True\&. This resource is important only when
\fBXmNradioBehavior\fP is True\&.
.IP "" 10
The application can always add and subtract toggles from
RowColumn regardless of the selected/unselected state of the toggle\&. The
application can also manage and unmanage toggle
children of RowColumn at any time regardless of state\&. Therefore,
the application can sometimes
create a RowColumn that has \fBXmNradioAlwaysOne\fP set to
True and none
of the toggle children selected\&.
The result is undefined if the value of this resource is True and the
application sets more than one ToggleButton at a time\&.
.IP "\fBXmNradioBehavior\fP" 10
Specifies a Boolean value that when True, indicates
that the RowColumn widget should enforce a RadioBox-type behavior
on all of its children that are ToggleButtons or
ToggleButtonGadgets\&.
.IP "" 10
When the value of this resource is True,
\fBXmNindicatorType\fP defaults to \fBXmONE_OF_MANY\fP
for ToggleButton and ToggleButtonGadget children\&.
.IP "" 10
RadioBox
behavior dictates that when one toggle is selected and the user selects another
toggle, the first toggle is unselected
automatically\&.
The RowColumn usually does not enforce this behavior if the application,
rather than the user, changes the state of a toggle\&.
The RowColumn does enforce this behavior if a toggle child is selected
with \fBXmToggleButtonSetState\fP or \fBXmToggleButtonGadgetSetState\fP
with a \fInotify\fP argument of True\&.
.IP "" 10
When \fBXmCreateRadioBox\fP is called, the default value of
\fBXmNradioBehavior\fP is True\&.
Otherwise, the default value is False\&.
.IP "\fBXmNresizeHeight\fP" 10
Requests a new height if necessary, when set to True\&. When this
resource is set to
False, the widget does not request a new height regardless of any
changes to the widget or its children\&.
.IP "\fBXmNresizeWidth\fP" 10
Requests a new width if necessary, when set to True\&. When set to
False, the widget does not request a new width regardless of any
changes to the widget or its children\&.
.IP "\fBXmNrowColumnType\fP" 10
Specifies the type of RowColumn widget
to be created\&.
It is a nonstandard resource that cannot be changed after it is set\&.
If an application uses any of the
convenience routines, except \fBXmCreateRowColumn\fP,
this resource is automatically forced to the appropriate
value by the convenience routine\&. If an application uses
the Xt Intrinsics API to create its RowColumn widgets,
it must specify this resource itself\&. The set
of possible settings for this resource are
.RS
.IP " \(bu" 6
\fBXmWORK_AREA\fP (default)
.IP " \(bu" 6
\fBXmMENU_BAR\fP
.IP " \(bu" 6
\fBXmMENU_PULLDOWN\fP
.IP " \(bu" 6
\fBXmMENU_POPUP\fP
.IP " \(bu" 6
\fBXmMENU_OPTION\fP
.RE
.IP "" 10
This resource cannot be changed after the RowColumn widget
is created\&. Any changes attempted through \fBXtSetValues\fP
are ignored\&.
.IP "" 10
The value of this resource is used to determine the value of a number
of other resources\&. The descriptions of RowColumn resources explain
this when it is the case\&. The resource \fBXmNnavigationType\fP,
inherited from \fBXmManager\fP, is changed to \fBXmNONE\fP if
\fBXmNrowColumnType\fP is \fBXmMENU_OPTION\fP\&.
.IP "\fBXmNspacing\fP" 10
Specifies the horizontal and vertical spacing between
items contained within the RowColumn widget\&.
The default value is 3 pixels for \fBXmOPTION_MENU\fP and
\fBXmWORK_AREA\fP and 0 (zero) for other RowColumn types\&.
.IP "\fBXmNsubMenuId\fP" 10
Specifies the widget ID for the Pulldown menu pane to be associated with
an OptionMenu\&. This resource is useful only when \fBXmNrowColumnType\fP is
set to \fBXmMENU_OPTION\fP\&.
The default value is NULL\&.
.IP "\fBXmNtearOffMenuActivateCallback\fP" 10
Specifies the callback list that notifies the application when
the tear-off menu pane is about to be activated\&. It precedes the tear-off\&'s
map callback\&.
.IP "" 10
Use this resource when your application has shared menu panes and when
the torn-off menu can have two or
more parents that can have opposing sensitivity states for the same
menu item\&.
This resource enables
the application to track
whether a menu item is sensitive or insensitive and to set the state to the
original parent\&'s menu item state when the torn-off menu is reposted\&.
The application can use \fBXmGetPostedFromWidget\fP to determine from which
parent the menu was torn\&. The callback reason is \fBXmCR_TEAR_OFF_ACTIVATE\fP\&.
The default is NULL\&.
.IP "\fBXmNtearOffMenuDeactivateCallback\fP" 10
Specifies the callback list that notifies the application when
the tear-off menu pane is about to be deactivated\&. It follows the tear-off\&'s
unmap callback\&.
.IP "" 10
Use this resource when your application has shared menu panes and when
the torn-off menu can have two or
more parents that can have opposing sensitivity states for the same
menu item\&.
This resource enables
the application to track
whether a menu item is sensitive or insensitive and to set the state to the
original parent\&'s menu item state when the torn-off menu is reposted\&.
The application can use \fBXmGetPostedFromWidget\fP to determine from which
parent the menu was torn\&.
The callback reason is \fBXmCR_TEAR_OFF_DEACTIVATE\fP\&. The default is NULL\&.
.IP "\fBXmNtearOffModel\fP" 10
Indicates whether tear-off functionality is enabled or disabled
when \fBXmNrowColumnType\fP is set to \fBXmMENU_PULLDOWN\fP or
\fBXmMENU_POPUP\fP\&. The values are \fBXmTEAR_OFF_ENABLED\fP or
\fBXmTEAR_OFF_DISABLED\fP (default value)\&. This resource is
invalid for type \fBXmMENU_OPTION\fP; however, it does affect
any pulldown
submenus within an OptionMenu\&.
The function \fBXmRepTypeInstallTearOffModelConverter\fP installs
a resource converter for this resource\&.
.IP "\fBXmNtearoffTitle\fP" 10
Used by the TearOff shell to set the title for the window manager to
display\&.
.IP "\fBXmNunmapCallback\fP" 10
Specifies a list of callbacks that is called
after the window associated with the RowColumn
widget has been unmapped\&. The callback reason is \fBXmCR_UNMAP\fP\&.
The default value is NULL\&.
.IP "\fBXmNwhichButton\fP" 10
This resource is obsolete; it has been replaced by \fBXmNmenuPost\fP and
is present for compatibility with older releases of Motif\&.
This resource cannot be 2\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmRowColumn Constraint Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNpositionIndexXmCPositionIndexshortXmLAST_POSITIONCSG
_____
.TE
.IP "\fBXmNpositionIndex\fP" 10
Specifies the position of the widget in its parent\&'s list of
children (the value of the \fBXmNchildren\fP resource)\&. The value
is an integer that is no less than 0 (zero) and no greater than
the number of children in the list at the time the value is
specified\&. A value of 0 (zero) means that the child is placed at the
beginning of the list\&. The value can also be specified as
\fBXmLAST_POSITION\fP (the default), which means that the child
is placed at the end of the list\&. Any other value is ignored\&.
\fBXtGetValues\fP returns the position of the widget in its parent\&'s
child list at the time of the call to \fBXtGetValues\fP\&.
.IP "" 10
When a widget is inserted into its parent\&'s child list, the positions
of any existing children that are greater than or equal to the
specified widget\&'s \fBXmNpositionIndex\fP are increased by 1\&.
The effect of a call to \fBXtSetValues\fP for \fBXmNpositionIndex\fP
is to remove the specified widget from its parent\&'s child list, decrease
by 1 the positions of any existing children that are greater than
the specified widget\&'s former position in the list, and then insert
the specified widget into its parent\&'s child list as described in the
preceding sentence\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBSimple Menu Creation Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbuttonAcceleratorsXmCButtonAcceleratorsStringTableNULLC
_____
XmNbuttonAcceleratorTextXmCButtonAcceleratorTextXmStringTableNULLC
_____
XmNbuttonCountXmCButtonCountint0C
_____
XmNbuttonMnemonicCharSetsXmCButtonMnemonicCharSetsXmStringCharSetTableNULLC
_____
XmNbuttonMnemonicsXmCButtonMnemonicsXmKeySymTableNULLC
_____
XmNbuttonsXmCButtonsXmStringTableNULLC
_____
XmNbuttonSetXmCButtonSetint-1C
_____
XmNbuttonTypeXmCButtonTypeXmButtonTypeTableNULLC
_____
XmNoptionLabelXmCOptionLabelXmStringNULLC
_____
XmNoptionMnemonicXmCOptionMnemonicKeySymNULLC
_____
XmNpostFromButtonXmCPostFromButtonint-1C
_____
XmNsimpleCallbackXmCCallbackXtCallbackProcNULLC
_____
.TE
.IP "\fBXmNbuttonAccelerators\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a list of accelerators for the buttons created\&.
The list contains one element for each button, separator, and title
created\&.
.IP "\fBXmNbuttonAcceleratorText\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a list of compound strings to display for the accelerators for
the buttons created\&.
The list contains one element for each button, separator, and title
created\&.
.IP "\fBXmNbuttonCount\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies the total number of menu buttons, separators, and titles to
create\&.
The value must not be negative\&.
.IP "\fBXmNbuttonMnemonicCharSets\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a list of character sets with which button mnemonics are to be
displayed\&.
The list contains one element for each button, separator, and title
created\&.
The default is determined dynamically depending on the locale of the
widget\&.
.IP "\fBXmNbuttonMnemonics\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a list of mnemonics for the buttons created\&.
The list contains one element for each button, separator, and title
created\&.
.IP "\fBXmNbuttons\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a list of compound strings to use as labels for the buttons
created\&.
The list contains one element for each button, separator, and title
created\&.
.IP "\fBXmNbuttonSet\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies which button of a RadioBox or OptionMenu Pulldown submenu
is initially set\&.
The value is an integer \fIn\fP indicating the \fIn\fPth
ToggleButtonGadget specified for a RadioBox or the \fIn\fPth
PushButtonGadget specified for an OptionMenu Pulldown submenu\&.
The first button specified is number 0\&.
The value must not be negative\&.
.IP "\fBXmNbuttonType\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a list of button types associated with the buttons to be
created\&.
The list contains one element for each button, separator, and title
created\&.
If this resource is not specified, each button in a MenuBar is a
CascadeButtonGadget, each button in a RadioBox or CheckBox is a
ToggleButtonGadget, and
each button in any other type
of RowColumn widget is a PushButtonGadget\&.
Each button type is of type \fBXmButtonType\fR, an enumeration with the
following possible values:
.RS
.IP "\fBXmCASCADEBUTTON\fP" 10
Specifies a CascadeButtonGadget for a MenuBar,
Popup menu pane, or Pulldown menu pane\&.
.IP "\fBXmCHECKBUTTON\fP" 10
Specifies a ToggleButtonGadget for a CheckBox,
Popup menu pane, or Pulldown menu pane\&.
.IP "\fBXmDOUBLE_SEPARATOR\fP" 10
Specifies a SeparatorGadget for a Popup
menu pane, Pulldown menu pane, or OptionMenu Pulldown submenu\&.
The separator type is \fBXmDOUBLE_LINE\fP\&.
.IP "\fBXmPUSHBUTTON\fP" 10
Specifies a PushButtonGadget for a Popup menu pane,
Pulldown menu pane, or OptionMenu Pulldown submenu\&.
.IP "\fBXmRADIOBUTTON\fP" 10
Specifies a ToggleButtonGadget for a RadioBox,
Popup menu pane, or Pulldown menu pane\&.
.IP "\fBXmSEPARATOR\fP" 10
Specifies a SeparatorGadget for a Popup menu pane,
Pulldown menu pane, or OptionMenu Pulldown submenu\&.
.IP "\fBXmTITLE\fP" 10
Specifies a LabelGadget used as a title for a Popup
menu pane or Pulldown menu pane\&.
.RE
.IP "\fBXmNoptionLabel\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a compound string for the label string to be used on the left
side of an OptionMenu\&.
.IP "\fBXmNoptionMnemonic\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a keysym for a key that, when pressed by the user along
with the \fBMAlt\fP modifier, posts
the associated Pulldown menu pane for an OptionMenu\&.
.IP "\fBXmNpostFromButton\fP" 10
This resource is for use with the simple menu creation routines\&.
For a Pulldown menu pane, it specifies the button in the parent to which
the submenu is attached\&.
The menu is then posted from this button\&.
The value is an integer \fIn\fP indicating the \fIn\fPth
CascadeButton or CascadeButtonGadget specified for the parent of the
Pulldown menu pane\&.
The first button specified is number 0\&.
The value must not be negative\&.
.IP "\fBXmNsimpleCallback\fP" 10
This resource is for use with the simple menu creation routines\&.
It specifies a callback procedure to be called when a button is
activated or when its value changes\&.
This callback function is added to each button after creation\&.
For a CascadeButtonGadget or a PushButtonGadget, the callback is added
as the button\&'s \fBXmNactivateCallback\fP, and it is called when the
button is activated\&.
For a ToggleButtonGadget, the callback is added as the button\&'s
\fBXmNvalueChangedCallback\fP, and it is called when the button\&'s value
changes\&.
The button number is passed in the \fIclient_data\fP field\&.
.SS "Inherited Resources"
.PP
RowColumn inherits behavior and resources from the
superclasses described in the following tables\&.
For a complete description of each resource, refer to the
reference page for that superclass\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmManager Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
_____
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNforegroundXmCForegroundPixeldynamicCSG
_____
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
_____
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
_____
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
_____
XmNinitialFocusXmCInitialFocusWidgetNULLCSG
_____
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypedynamicCSG
_____
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
_____
XmNshadowThicknessXmCShadowThicknessDimensiondynamicCSG
_____
XmNstringDirectionXmCStringDirectionXmStringDirectiondynamicCG
_____
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
_____
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
_____
XmNtraversalOnXmCTraversalOnBooleandynamicCSG
_____
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
_____
XmNuserDataXmCUserDataXtPointerNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBComposite Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNchildrenXmCReadOnlyWidgetListNULLG
_____
XmNinsertPositionXmCInsertPositionXtOrderProcdefault procedureCSG
_____
XmNnumChildrenXmCReadOnlyCardinal0G
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBCore Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
_____
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderWidthXmCBorderWidthDimension0CSG
_____
XmNcolormapXmCColormapColormapdynamicCG
_____
XmNdepthXmCDepthintdynamicCG
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
_____
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
_____
XmNscreenXmCScreenScreen *dynamicCG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.SS "Callback Information"
.PP
A pointer to the following structure is passed to each callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent \fI* event\fP;
Widget \fIwidget\fP;
char \fI* data\fP;
char \fI* callbackstruct\fP;
} XmRowColumnCallbackStruct;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback
.PP
The following fields apply only when the callback reason is \fBXmCR_ACTIVATE\fP;
for all other callback reasons, these fields are set to NULL\&.
The \fBXmCR_ACTIVATE\fP callback reason is generated only when the application
has supplied an entry callback, which overrides any activation callbacks
registered with the individual RowColumn items\&.
.IP "\fIwidget\fP" 10
Is set to the widget ID of the RowColumn item that has been activated
.IP "\fIdata\fP" 10
Contains the client-data value supplied by the
application when the RowColumn item\&'s activation callback was registered
.IP "\fIcallbackstruct\fP" 10
Points to the callback structure
generated by the RowColumn item\&'s activation callback
.SS "Translations"
.PP
\fBXmRowColumn\fP translations depend on the value of
the \fBXmNrowColumnType\fP resource\&.
.PP
If \fBXmNrowColumnType\fP is set to \fBXmWORK_AREA\fP,
\fBXmRowColumn\fP inherits translations from \fBXmManager\fP\&.
.PP
If \fBXmNrowColumnType\fP is set to \fBXmMENU_OPTION\fP,
\fBXmRowColumn\fP inherits traversal, \fB<osfActivate>\fP, and \fB<osfCancel>\fP
translations from \fBXmManager\fP
and has the following additional translations\&.
.PP
The following key names are listed in the
X standard key event translation table syntax\&.
This format is the one used by Motif to
specify the widget actions corresponding to a given key\&.
A brief overview of the format is provided under
\fBVirtualBindings\fP(3)\&.
For a complete description of the format, please refer to the
X Toolkit Instrinsics Documentation\&.
.IP "\fB<Btn2Down>\fP:" 10
MenuGadgetDrag()
.IP "\fBc<Btn1Down>\fP:" 10
MenuGadgetTraverseCurrent()
.IP "\fBc<Btn1Up>\fP:" 10
MenuGadgetTraverseCurrentUp()
.IP "\fB\(apc\fP\fB<BtnDown>\fP:" 10
MenuBtnDown()
.IP "\fB\(apc\fP\fB<BtnUp>\fP:" 10
MenuBtnUp()
.IP "\fB:\fP\fB<Key>\fP\fB<osfHelp>\fP:" 10
MenuHelp()
.PP
The translations for \fBXmRowColumn\fP if
\fBXmNrowColumnType\fP is set to \fBXmMENU_BAR\fP
\fBXmMENU_PULLDOWN\fP, or \fBXmMENU_POPUP\fP
are described in the following list\&.
In a Popup menu system, \fB<Btn3>\fP also performs the \fB<Btn1>\fP
actions\&.
.IP "\fB:\fP\fB<Key>\fP\fB<osfHelp>\fP:" 10
MenuHelp()
.IP "\fB:\fP\fB<Key>\fP\fB<osfLeft>\fP:" 10
MenuGadgetTraverseLeft()
.IP "\fB:\fP\fB<Key>\fP\fB<osfRight>\fP:" 10
MenuGadgetTraverseRight()
.IP "\fB:\fP\fB<Key>\fP\fB<osfUp>\fP:" 10
MenuGadgetTraverseUp()
.IP "\fB:\fP\fB<Key>\fP\fB<osfDown>\fP:" 10
MenuGadgetTraverseDown()
.SS "Action Routines"
.PP
The \fBXmRowColumn\fP action routines are
.IP "Help():" 10
Calls the callbacks for \fBXmNhelpCallback\fP if any exist\&. If there are no help
callbacks for this widget, this action calls the help callbacks
for the nearest ancestor that has them\&.
.IP "ManagerGadgetSelect():" 10
When a gadget child of the menu has the focus, invokes the gadget
child\&'s behavior associated with \fB<osfSelect>\fP\&.
This generally has the effect of unposting the menu hierarchy and arming
and activating the gadget, except that, for a CascadeButtonGadget with a
submenu, it posts the submenu\&.
.IP "MenuBtnDown():" 10
When a gadget child of the menu has focus, invokes the gadget
child\&'s behavior associated with \fB<Btn1Down>\fP\&.
This generally has the effect of unposting any menus posted by the
parent menu, enabling mouse traversal in the menu, and arming the
gadget\&.
For a CascadeButtonGadget with a submenu, it also posts the associated
submenu\&.
.IP "MenuBtnUp():" 10
When a gadget child of the menu has focus, invokes the gadget
child\&'s behavior associated with \fB<Btn1Up>\fP\&.
This generally has the effect of unposting the menu hierarchy and
activating the gadget,
except that for a CascadeButtonGadget with a
submenu, it posts the submenu and enables keyboard traversal in the
menu\&.
.IP "MenuGadgetEscape():" 10
In a top-level Pulldown MenuPane from a MenuBar, unposts the menu,
disarms the MenuBar CascadeButton and the MenuBar, and, when the shell\&'s
keyboard focus policy is \fBXmEXPLICIT\fP, restores keyboard focus to
the widget that had the focus before the MenuBar was entered\&.
In other Pulldown MenuPanes, unposts the menu\&.
.IP "" 10
In a Popup MenuPane, unposts the menu and, when the shell\&'s keyboard
focus policy is \fBXmEXPLICIT\fP, restores keyboard focus to the widget
from which the menu was posted\&.
In a TearOff MenuPane that has no submenus posted, dismisses the
menu; otherwise, if one or more submenus are posted, unposts the last
menu pane\&.
.IP "MenuGadgetTraverseDown():" 10
If the current menu item has a submenu and is in a MenuBar, then this
action posts the submenu, disarms the current menu item, and arms
the submenu\&'s first traversable menu item\&.
.IP "" 10
If the current menu item is in a MenuPane, then this action disarms the
current menu item and arms the item below it\&. This action wraps within the
MenuPane\&. The direction of the wrapping depends on the
\fBXmNlayoutDirection\fP resource\&.
.IP "MenuGadgetTraverseLeft():" 10
When the current menu item is in a MenuBar, this action disarms the
current item and arms the MenuBar item to the left\&.
This action wraps within the MenuBar\&.
.IP "" 10
In MenuPanes, if the current menu item is not at the left edge of a MenuPane,
this action disarms the current item and arms the item to its left\&.
If the current menu item is at the left edge of a submenu attached to a
MenuBar item, then this action unposts the submenu and traverses to the
MenuBar item to the left, wrapping if necessary\&. If that MenuBar item
has a submenu, it posts the submenu and arms the first traversable
item in the submenu\&.
If the current menu item is at the left edge of a submenu not directly
attached to a MenuBar item, then this action unposts the current submenu only\&.
.IP "" 10
In Popup or Torn-off MenuPanes, when the current menu item is at the
left edge, this action wraps within the MenuPane\&. If the current menu
item is at the left edge of the MenuPane and not in the top row, this
action wraps to the rightmost menu item in the row above\&. If the current
menu item is in the upper, leftmost corner, this action wraps
to the tear-off control, if present, or else it wraps to the bottom,
rightmost menu item in the MenuPane\&.
.IP "" 10
The preceding description applies when the \fBXmNlayoutDirection\fP horizontal
direction is \fBXmLEFT_TO_RIGHT\fP\&. If the \fBXmNlayoutDirection\fP horizontal
direction is \fBXmRIGHT_TO_LEFT\fP, then the following applies\&.
.IP "" 10
If the current menu item is in a MenuBar, then this action disarms the
current item and arms the MenuBar item to the left\&.
This action wraps within the MenuBar\&.
.IP "" 10
In MenuPanes, if the current menu item is a CascadeButton, then this
action posts its associated submenu\&.
If the current menu item is not a CascadeButton and is not at the left
edge of a MenuPane, this action disarms the current item and arms the
item to its left, wrapping if necessary\&.
If the current menu item is not a CascadeButton and is at the left edge of a
submenu that is a descendent of a MenuBar, then this action unposts all
submenus and traverses to the MenuBar item to the left\&.
If that MenuBar item has a submenu, it posts the submenu and arms
the submenu\&'s first traversable item\&.
.IP "" 10
In Popup or Torn-off menus, if the current menu item is not a
CascadeButton and is at the left edge of a row (except the
bottom row), this action wraps to the rightmost menu item in the
row below\&. If the current menu item is not a CascadeButton and
is in the bottom, leftmost corner of a Popup or Pulldown MenuPane, this
action wraps to the tear-off control, if present, or else it wraps to
the top, rightmost menu item of the MenuPane\&.
.IP "MenuGadgetTraverseRight():" 10
If the current menu item is in a MenuBar, then this action disarms the
current item and arms the MenuBar item to the right\&.
This action wraps within the MenuBar\&.
.IP "" 10
In MenuPanes, if the current menu item is a CascadeButton, then this
action posts its associated submenu\&.
If the current menu item is not a CascadeButton and is not at the right
edge of a MenuPane, this action disarms the current item and arms the
item to its right, wrapping if necessary\&.
If the current menu item is not a CascadeButton and is at the right edge of a
submenu that is a descendent of a MenuBar, then this action unposts all
submenus and traverses to the MenuBar item to the right\&.
If that MenuBar item has a submenu, it posts the submenu and arms
the submenu\&'s first traversable item\&.
.IP "" 10
In Popup or Torn-off menus, if the current menu item is not a
CascadeButton and is at the right edge of a row (except the
bottom row), this action wraps to the leftmost menu item in the
row below\&. If the current menu item is not a CascadeButton and
is in the bottom, rightmost corner of a Popup or Pulldown MenuPane, this
action wraps to the tear-off control, if present, or else it wraps to
the top, leftmost menu item of the MenuPane\&.
.IP "" 10
The preceding description applies when the \fBXmNlayoutDirection\fP horizontal
direction is \fBXmLEFT_TO_RIGHT\fP\&. If the \fBXmNlayoutDirection\fP horizontal
direction is \fBXmRIGHT_TO_LEFT\fP, then the following applies\&.
When the current menu item is in a MenuBar, this action disarms the
current item and arms the MenuBar item to the left\&.
This action wraps within the MenuBar\&.
.IP "" 10
In MenuPanes, if the current menu item is not at the right edge of a MenuPane,
this action disarms the current item and arms the item to its right\&.
If the current menu item is at the right edge of a submenu attached to a
MenuBar item, then this action unposts the submenu and traverses to the
MenuBar item to the right, wrapping if necessary\&. If that MenuBar item
has a submenu, it posts the submenu and arms the first traversable
item in the submenu\&.
If the current menu item is at the right edge of a submenu not directly
attached to a MenuBar item, then this action unposts the current submenu only\&.
.IP "" 10
In Popup or Torn-off MenuPanes, when the current menu item is at the
right edge, this action wraps within the MenuPane\&. If the current menu
item is at the right edge of the MenuPane and not in the top row, this
action wraps to the leftmost menu item in the row above\&. If the current
menu item is in the upper, rightmost corner, this action wraps
to the tear-off control, if present, or else it wraps to the bottom,
leftmost menu item in the MenuPane\&.
.IP "MenuGadgetTraverseUp():" 10
When the current menu item is in a MenuPane, then
this action disarms the current menu item and arms the item above it\&.
This action wraps within the MenuPane\&. The direction of the wrapping
depends on the \fBXmNlayoutDirection\fP resource\&.
.SS "Related Behavior"
.PP
The following menu functions are available:
.IP "\fB<osfMenuBar>\fP:" 10
In any non-popup descendant of a MenuBar\&'s parent, excluding the MenuBar
itself, this action enables keyboard traversal and moves keyboard focus
to the first item in the MenuBar\&.
In the MenuBar or any menu cascaded from it, this action unposts the
menu hierarchy and, when the shell\&'s keyboard focus policy is
\fBXmEXPLICIT\fP, restores focus to the widget that had the focus
when the menu system was entered\&.
.IP "\fB<osfMenu>\fP:" 10
Pops up the menu associated with the control that has the keyboard focus\&.
Enables keyboard traversal in the menu\&.
In the Popup menu system or any menu cascaded from it, this action
unposts the menu hierarchy and, when the shell\&'s keyboard focus policy
is \fBXmEXPLICIT\fP, restores focus to the widget that had the focus
when the menu system was entered\&.
.SS "Virtual Bindings"
.PP
The bindings for virtual keys are vendor specific\&.
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
.SH "RELATED"
.PP
\fBComposite\fP(3),
\fBConstraint\fP(3),
\fBCore\fP(3),
\fBXmCreateMenuBar\fP(3),
\fBXmCreateOptionMenu\fP(3),
\fBXmCreatePopupMenu\fP(3),
\fBXmCreatePulldownMenu\fP(3),
\fBXmCreateRadioBox\fP(3),
\fBXmCreateRowColumn\fP(3),
\fBXmCreateSimpleCheckBox\fP(3),
\fBXmCreateSimpleMenuBar\fP(3),
\fBXmCreateSimpleOptionMenu\fP(3),
\fBXmCreateSimplePopupMenu\fP(3),
\fBXmCreateSimplePulldownMenu\fP(3),
\fBXmCreateSimpleRadioBox\fP(3),
\fBXmCreateWorkArea\fP(3),
\fBXmGetMenuCursor\fP(3),
\fBXmGetPostedFromWidget\fP(3),
\fBXmGetTearOffControl\fP,
\fBXmLabel\fP(3),
\fBXmManager\fP(3),
\fBXmMenuPosition\fP(3),
\fBXmOptionButtonGadget\fP(3),
\fBXmOptionLabelGadget\fP(3),
\fBXmRepTypeInstallTearOffModelConverter\fP,
\fBXmSetMenuCursor\fP(3),
\fBXmUpdateDisplay\fP(3),
\fBXmVaCreateManagedRowColumn\fP(3),
\fBXmVaCreateRowColumn\fP(3),
\fBXmVaCreateSimpleCheckBox\fP(3),
\fBXmVaCreateSimpleMenuBar\fP(3),
\fBXmVaCreateSimpleOptionMenu\fP(3),
\fBXmVaCreateSimplePopupMenu\fP(3),
\fBXmVaCreateSimplePulldownMenu\fP(3), and
\fBXmVaCreateSimpleRadioBox\fP(3)\&.
|