ContentsIndexPreviousNext

5.12 Scroll Bar

gt200016.gif

With the use of the SCROLL-BAR control, a user can "scroll through" a continuous range of items. This control has five elements--next and previous line buttons, next and previous page regions, and a slider (also called a "thumb"), which indicates the current position in the range.


Portability note: Scroll bars are available both for character-based and MS Windows systems. For character-based systems, you may choose to display the various parts of the scroll-bar with the GO-GUI-MAP and GF-GUI-MAP termcap functions. You may also do this with the GUI-CHARS configuration variable.
When a user clicks on a scroll bar, a message is sent to the scroll bar's event procedure, which updates the screen according to the new scroll position. (For a detailed description of these events, see Chapter 6, "Events Reference.") Scroll bars do not generate terminating events, so any ACCEPT statement remains active while the user adjusts the scroll bar. The scroll bar does not automatically update its own value when the user modifies it. You should respond to each message by setting the scroll bar's value to the new position. Otherwise, the scroll bar will return to its previous setting after the user finishes.

More:

Common Properties

Special Properties

Events