Appendix A. Widgets and Components Cross Reference

The following tables show how Motif widgets correspond to the components described in this guide. Gadgets, which are essentially performance-oriented versions of widgets, are not listed in this appendix but correspond closely to their widget counterparts.

Table A-1. Basic Controls

ControlMotif Widget
Cascade buttonXmCascadeButton
Check buttonXmToggleButton with XmNindicatorType set to XmN_OF_MANY
Drop-down combination boxXmComboBox
ContainerXmContainer
LabelXmLabel
NotebookXmNotebook
Option menu buttonAn XmCascadeButton within an XmRowColumn with XmNrowColumnType set to XmMENU_OPTION
Push buttonXmPushButton, XmArrowButton, XmDrawnButton
Radio buttonXmToggleButton with XmNindicatorType set to XmONE_OF_MANY
SeparatorXmSeparator
Spin boxXmSpinBox
Toggle buttonXmToggleButton (it can also be simulated by XmPushButton and XmDrawnButton )

Table A-2. Field Controls

ControlMotif Widget
CanvasXmDrawingArea (without children), XmDrawnButton
ListXmList
SashPrivate element of XmPanedWindow
ScaleXmScale
Scroll barXmScrollBar
TextXmText and XmTextField

Table A-3. Basic Groups

ControlMotif Widget
MenuXmRowColumn with XmNrowColumnType set to XmMENU_PULLDOWN or XmMENU_POPUP
Menu barXmRowColumn with XmNrowColumnType set to XmMENU_BAR
PanelXmRowColumn with XmNrowColumnType set to XmWORK_AREA and composed of basic controls

Table A-4. Layout Groups

ControlMotif Widget
CompositeXmBulletinBoard, XmDrawingArea (with children), XmForm, XmRowColumn when XmNrowColumnType is set to XmWORK_AREA and it is not a basic group
Split window (paned window)XmPanedWindow

Table A-5. Framing Groups

ControlMotif Widget
Group boxXmFrame
Main windowXmMainWindow
Scrolled windowXmScrolledWindow

Table A-6. Dialog Boxes

ControlMotif Widget
Command boxXmCommand
Error messageXmMessageBox
File selection boxXmFileSelectionBox
Information messageXmMessageBox
MessageXmMessageBox
Prompt dialogXmSelectionBox
Question dialogXmMessageBox
Selection boxXmSelectionBox
Warning messageXmMessageBox
In-progress dialogXmMessageBox