[Contents] [Index] [Next] [Previous]

Using Adjustable Components


OSF/Motif includes the following adjustable components:

Using PanedWindows

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. 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.

To adjust a PanedWindow with the mouse:

  1. Move the pointer to the Sash
  2. When the pointer shape changes to a + (plus sign), press and hold down Button 1
  3. Drag the mouse until the panes are in the proportion you want
  4. Release Button 1

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 as you press the arrow keys.

Using ScrolledWindows

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.

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.

Using Scales

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.

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 as you press the appropriate arrow keys.