1.6. Container Widgets   

Container widgets are Composite widgets that provide applications with general layout functionality. Since they are Composite widgets, Container widgets can have children. Motif provides the following container widgets:

XmManager
The XmManager class sole purpose is to act as a supporting superclass for other widget classes. It supports the visual resources, graphics contexts and traversal resources necessary for the graphics and traversal mechanisms.

XmDrawingArea
The DrawingArea widget is an empty widget that is easily adaptable to a variety of purposes. DrawingArea does no drawing and defines no behavior except for invoking callbacks. Callbacks notify the application when graphics need to be drawn ( exposure events or widget resize) and when the widget receives input from the keyboard or mouse. Applications are responsible for defining appearance and behavior as needed in response to DrawingArea callbacks.

XmFrame
The XmFrame widget is a manager that is used to enclose a single child within a border drawn by the XmFrame widget.

XmMainWindow
The XmMainWindow widget provides a standard layout for the primary window of an application. This layout includes a MenuBar, a CommandWindow, a work region, and ScrollBars. Any or all of these areas are optional. The work region and ScrollBars in the MainWindow behave exactly the same as their counterparts in the ScrolledWindow widget.

XmRowColumn
The RowColumn widget is a general purpose RowColumn manager capable of containing any widget type as a child. The type of layout performed is controlled by how the application has set the various layout resources. The application can specify whether the children should be
packed tightly together (not into organized rows and columns) or
placed in an identically sized box (thus producing a symmetrical look) or
whether specific layout should be done (the current x and y positions of the children control their location).

XmScale
The Scale widget has two basic functions. It is used by an application to indicate a value from within a range of values. It allows the user to input or modify a value from the same range.

XmScrolledWindow
The ScrolledWindow widget combines one or more ScrollBar widgets and a viewing area to implement a visible window onto some other (usually larger) data display. The visible part of the window can be scrolled through the larger display by the use of ScrollBars.

XmPanedWindow
The PanedWindow manager widget is a Composite widget that lays out children in a vertically tiled format. The PanedWindow manager widget is also a constraint widget, which means that it creates and manages a set of constraints for each child. It is possible to specify a minimum and maximum size for each pane.