This appendix shows how actual OSF/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. Component to Widget Correspondence
Components | Motif Widgets |
---|---|
Basic Controls: |
|
Separator | XmSeparator |
Label | XmLabel |
PushButton | XmPushButton |
| XmArrowButton |
| XmDrawnButton |
ToggleButton | XmToggleButton It can also be simulated by XmPushButton and XmDrawnButton |
CheckButton | XmToggleButton with XmNindicatorType set to XmN_OF_MANY |
RadioButton | XmToggleButton with XmNindicatorType set to XmONE_OF_MANY |
CascadeButton | XmCascadeButton |
OptionButton | An XmCascadeButton within an XmRowColumn with XmNrowColumnType set to XmMENU_OPTION |
Field Controls: |
|
ScrollBar | XmScrollBar |
Scale | XmScale |
Sash | Private element of XmPanedWindow |
Text | XmText and XmTextField |
Canvas | XmDrawingArea (without children), XmDrawnButton |
List | XmList |
Basic Groups: |
|
Panel | XmRowColumn with XmNrowColumnType set to XmWORK_AREA and composed of basic controls |
Menu | XmRowColumn with XmNrowColumnType set to XmMENU_PULLDOWN or XmMENU_POPUP |
MenuBar | XmRowColumn with XmNrowColumnType set to XmMENU_BAR |
Layout Groups: |
|
Composite | XmBulletinBoard, XmDrawingArea (with children), XmForm, XmRowColumn when XmNrowColumnType is set to XmWORK_AREA and it is not a basic group |
PanedWindow | XmPanedWindow |
Framing Groups: |
|
Frame | XmFrame |
ScrolledWindow | XmScrolledWindow |
MainWindow | XmMainWindow |
DialogBoxes: |
|
CommandDialog | XmCommand |
ErrorDialog | XmMessageBox |
FileSelectionDialog | XmFileSelectionBox |
InformationDialog | XmMessageBox |
MessageDialog | XmMessageBox |
PromptDialog | XmSelectionBox |
QuestionDialog | XmMessageBox |
SelectionDialog | XmSelectionBox |
WarningDialog | XmMessageBox |
WorkingDialog | XmMessageBox |