Motif includes the following adjustable components:
A PanedWindow groups components into separate panes. Panes are distinct sections within one window. Adjacent panes are separated from one another by a horizontal separating line and a Sash (see Figure 3-12). The Sash allows you to adjust the relative size of adjacent panes. You move the Sash to change the position of the separating line between two panes, which changes the size of the panes. As the Sash moves, the pane located in the direction of the movement gets smaller while the other pane gets proportionally larger.
Figure 20. A PanedWindow.
To adjust a PanedWindow with the mouse:
If a Sash has the input focus, you can adjust a PanedWindow using the keyboard. Use the up and down arrows keys to move the separating line in small increments. You can move the separating line by larger increments by holding down Ctrl as you press the arrow keys.
A ScrolledWindow frames other components and provides ScrollBars as necessary to view the contents of the window. You use ScrollBars to adjust the visible contents of a window when the entire contents do not fit in the window. A ScrollBar consists of a movable component, called a slider, which moves within a trough running the length of the scrolled region. The position and size of the slider within the trough indicates the relative position and size of the visible area of the scrolled component. A ScrollBar also provides arrow buttons at each end of the trough for moving the slider (see Figure 3-13).
Figure 21. A ScrolledWindow.
In addition to the illustrated slider, a ScrollBar's slider visual can also be an etched line, a shadowed circle, or three etched lines in the middle of the slider.
You can use the following techniques to scroll a region with the mouse:
To navigate through a ScrolledWindow using the keyboard, see the following sections on Lists and Text components for specific information.
A Scale is used to select a value from a continuous range. Like a ScrollBar, a Scale consists of a slider within a trough and arrow buttons. A Scale can be oriented vertically or horizontally. The position of the slider indicates the current value relative to the whole range. The current value of a Scale may be displayed next to the slider. A Scale can also contain Labels that specify the value of the Scale when the slider is at particular locations (see Figure 3-14).
Figure 22. A Scale.
In addition to the illustrated slider, a Scale's slider visual can also be a rectangle, a shadowed circle, or three etched lines in the middle of the slider.
You can use the following techniques to manipulate a Scale with the mouse:
When a Scale has the input focus, you can adjust its value using the keyboard. To move the slider in single increments, press the appropriate arrow key. To move the slider in larger increments, press and hold down Ctrl as you press the appropriate arrow keys.