Next: Widget Resources Up: Widget Basics Previous: Gadgets

Manager Widgets

The following Manager widget classes are available in Motif:

Frame
- provides a 3D border effect to a widget. See frame.c
ScrolledWindow
- allows scrolling of windows
MainWindow
- A typical top level container for an application. Many widgets can be put in here. Especially useful for Menubars, Scrollbars and command windows.

DrawingArea
- provides a widget where graphics can be displayed. NOTE: Motif does not provide any graphics functions. Xlib provides them.
PanedWindow
- Allows vertical tiling of widgets.
Scale
- provides a slider object that can be used for user input.

RowColumn
- A widely used widget that can lay out widgets in a 2D fashion.
BulletinBoard
- has three sub-classes:
Form
- similar use to RowColumn but allows greater control of placement and sizing of Widgets.
Dialog
- there are two forms of dialog: a MessageBox which simply gives information to the user and SelectionBox which allows interaction with the user. Motif provides a Command widget for command line type input and a FileSelectionBox for directory/file selection.

We will study many of these in detail throughout the course. Some like frame are fairly straightforward and the example program frame.c should explain a lot. Some (Dialog for instance) we will meet in the course of a program but will not be looking at in great detail.


Dave.Marshall@cm.cf.ac.uk
Tue May 24 16:52:56 BST 1994