Both the OLIT and Solaris Motif toolkits support a number of common widgets and gadgets with similar functionality, and each supports a number of more exclusive widgets. If a widget is implemented in one toolkit but not in the other, you can often build an equivalent object using multiple widgets in the other toolkit.
Table 5-4 matches the common widget name to the actual class name of the widget in each toolkit.
Table 5-4 Common Widget Mapping
OLIT Class Name |
Solaris Motif Class Name |
---|---|
BulletinBoard |
XmBulletinBoard |
DrawArea |
XmDrawingArea |
ExclusiveChoice + RectButtons |
XmRowColumn + XmToggleButtons (Radio Box) |
Form |
XmForm |
Manager |
XmManager |
MenuButton |
DtMenuButton (not accessible in OpenWindows environment) |
NoticeShell |
XmDialogShell + XmMessageBox |
AbbrevMenuButton |
XmRowColumn (Option Menu) |
PopupWindowShell |
XmDialogShell |
NonExclusiveRectButton |
XmRowColumn + XmToggleButtons (Check Box) |
PopupMenuShell |
XmMenuShell |
Primitive |
XmPrimitive |
OblongButton |
XmPushButton |
ControlArea |
XmRowColumn |
Scrollbar |
XmScrollBar |
ScrollingList |
XmList + XmScrolledWindow |
ScrolledWindow |
XmScrolledWindow |
Slider |
XmScale |
StaticText |
XmLabel |
TextEdit |
XmText |
TextField |
XmTextField |
RectButton |
XmToggleButton |
This section briefly describes the widgets that are exclusive to Solaris Motif.
These widgets are also available for Motif development in the OpenWindows environment, except for the DtTerm, DtEditor, DtComboBox, DtSpinBox, and DtMenuButton widgets.
This widget provides the functionality required to emulate an ANSI X3.64-1979-style terminal emulator (specifically a DEC VT220-like terminal with extensions).
This widget provides a programmatic interface for editing services such as cut and paste.
This widget is a combination of a text field and a list widget that provides a list of valid choices for the text field. Selecting an item from this list automatically fills the text field with that list item.
This widget is a convenient user interface control that increments and decrements an arbitrary TextField.
This widget is a command widget that complements the menu cascading functionality of an XmCascadeButton widget. (OLIT has its own menu button widget, with equivalent functionality to DtMenuButton.)
This button is a primitive push button widget that displays an arrow label.
This is a manager widget that builds a command box and manages the user-selected commands and command history.
This button is a primitive push button whose label can be drawn by the program.
This manager widget is used to parent a single child and enclose that child with a frame or border.
This gadget is a low-overhead object for read-only text.
This manager widget supports a menu bar, command area, and work area.
This manager widget implements resizeable panes within a window.
This widget box allows you to select one item from a list in a general dialog box.
This widget provides a standard way to select a file (typically for the application to read or write).
The libDtWidget library, which contains the DtComboBox, DtSpinBox, DtMenuButton and DtEditor widgets, depends directly on the following libraries:
This section briefly describes the widgets that are exclusive to OLIT.
This primitive widget implements both the source and destination ends of drag-and-drop operations.
These special widgets manage any number of subobjects within the context of a single widget. When implementing menus or choice objects that contain many subitems, they provide a significant memory savings.
This manager widget automatically supports a window with a floating footer area.
This manager widget allows relative-sizing constraints to be placed on its children.
This primitive widget enables you to customize its behavior without subclassing.