Scrolled Window widget

The Scrolled Window widget is used to provide a logical viewpoint onto data which is potentially too large to be displayed at once. It is a composite widget consisting of two Scroll Bars and a window onto another widget which contains the data to be displayed.

A Scrolled Window may have a single child widget, which can be of any type except Main Window. The child widget is supposed to contain the data.

For more information, consult XmScrolledWindow(3X) in the OSF/Motif Programmer's Reference Manual.

HINTS

A Scrolled Window may be used to scroll through a table of widgets by making the child of the Scrolled Window a Form or RowColumn, then placing the table widget children within the Form (or RowColumn).

Motif 1.2 has a new callback defined for Scrolled Window, the Traverse Obscured Callback, which is invoked when the user attempts, using the keyboard, to traverse to a widget which is not currently displayed within the Scrolled Window viewpoint.

It is much better to use the built-in Motif Scrolled Text and Scrolled List objects than attempting to provide similar functionality yourself.

If the Scrolling Policy resource is set to Application Defined, it is up to the application to create the Scroll Bar widget children of the Scrolled Window. However, X-Designer will do this for you automatically if you have specified any resource, a callback, or a variable name for any Scroll Bar child of a Scrolled Window.

See also: