[ Previous | Next | Contents | Glossary | Home | Search ]
Motif and CDE 2.1 Style Guide Reference


Scroll Bar (Control)

Reference

Description

A scroll bar is an element associated with an area that can be scrolled. The scroll bar indicates to a user that more information is available (or can be added in a horizontal or vertical direction) and can be scrolled into view.

A scroll bar contains a scroll box, which is the part of the scroll bar that indicates the position of the scrollable information in the view. The user can scroll the view by moving the scroll box in the scroll bar.

Figure 56. Scroll Bars.




View figure.

When to Use

Recommended
Provide a scroll bar if nonnumeric information cannot be fully shown within one window.

Guidelines

Required
Do not use a scroll bar to represent numeric values. Use a slider instead.

Required
Adjust the size of a scroll box so that it is proportional to the amount of information that can be visible in the area that can be scrolled in relation to the total amount of information.

Required
Adjust the position of a scroll box so that it indicates the position of the information visible in the area that can be scrolled in relation to the total amount of information.

Required
Change the size of a scroll box only when one of the following is true:

  1. Information is added to or removed from data represented in the area that can be scrolled

  2. The window's size changes

  3. Recommended
    Provide a scroll bar along each dimension in which more information is available in a scrolling area. For example, if the area can be scrolled vertically to display additional information, provide a vertical scroll bar.

    Recommended
    When using an explicit focus policy, do not place the active cursor on or within the scroll bar.

    Recommended
    If the information in a scrolled area is completely visible, the scroll bar can be removed.

    Required
    When the user presses the SELECT button on the scroll bar's arrow button, scroll the associated scrolling area one unit in the direction of the arrow and repeat until the button is released.

    Required
    When the user presses the SELECT button in the scroll bar's scroll track, scroll the associated scrolling area one page in the direction of the mouse position relative to the scroll box and autorepeat (in the same direction) until the button is released.

    Required
    When the user presses the SELECT button in the scroll box, track the appropriate mouse coordinate with the scroll box, correspondingly scrolling the associated scrolling area, until the button is released. If the user moves the mouse perpendicularly away from the scroll bar (beyond a range specified by the operating environment), snap the scroll box back to its initial position at the time the user presses SELECT. When the user moves the mouse back into the scrolling range, begin tracking the mouse again.

    Required
    When the user presses the TRANSFER button in the scroll box or track, move the scroll box to the pointer position and scroll the corresponding area. While TRANSFER remains pressed, track the mouse with the scroll box in the exact same manner as when the user presses SELECT in the scroll box.

    Recommended
    When the user clicks Ctrl SELECT on one of the scroll bar's arrow buttons, scroll the scrolling area to the far end of the underlying information in the direction indicated by the arrow.

    Recommended
    When the user clicks Ctrl SELECT in the scroll bar's track, scroll the scrolling area to the far end of the underlying data in the direction of the mouse relative to the scroll box.

    Recommended
    When the user presses Shift SELECT in the scroll bar, scroll the associated scrolling area so that the scroll box is aligned with the position of the mouse. The alignment may be adjusted as the mouse is moved until the user releases the button.

    Required
    When the user presses a directional key while focus is in the scroll bar, scroll the associated scrolling area one unit in the indicated direction.

    Required
    When the user presses Ctrl plus a directional key while focus is in the scroll bar, scroll the associated scrolling area one large scrolling increment in the indicated direction.

    Required
    When the user presses Begin (or Home) or End in a horizontally aligned scroll bar, scroll the associated scrolling area to the leftmost or rightmost end, respectively.

    Required
    When the user presses Ctrl Begin (or Ctrl Home) or Ctrl End in a vertically aligned scroll bar, scroll the associated scrolling area to the topmost or bottommost end, respectively.

    Required
    When the user presses PageUp or PageDown in a horizontally aligned scroll bar, scroll the associated scrolling area by one page in the indicated direction.

    Required
    When the user presses PageLeft (or Ctrl PageUp) or PageDown (or Ctrl PageRight) in a vertically aligned scroll bar, scroll the associated scrolling area by one page in the indicated direction.

    Essential Related Topics

    For more information, see the Internal Navigation, Scrolling, and Slider (Control) reference pages.

    Supplemental Related Topics

    For more information, see the Mouse (Device), Size (Choice), and Emphasis (Cue) reference pages.


    [ Previous | Next | Contents | Glossary | Home | Search ]