Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Horizontal and Vertical Scroll Bar Control Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Usage Notes
■ Scroll bars are tools for navigating quickly through a long list of
items or a large amount of information, or for indicating the current
position on a scale.
■ Scroll bars can be used as input devices or as indicators of speed or
quantity - for example, to control the volume of a computer game or to
view the time elapsed in a timed process.
■ Use the Attached property to determine if a scroll bar is attached to a
form. See: ◄Attached Property►
■ When you're using a scroll bar as an indicator of speed or quantity
or as an input device, use the Max and Min properties to set the range
appropriate for the use of the control.
See: ◄Max Property► ◄Min Property►
■ To specify the amount of change to report in a scroll bar, use the
LargeChange property for clicking in the bar, and the SmallChange
property for clicking the arrow at either end of the bar. The scroll
bar's Value property increases or decreases by the amounts set for the
LargeChange and SmallChange properties.
See: ◄LargeChange Property► ◄SmallChange Property►
■ You can position the scroll bar at run time by setting the Value
property between 0 and 32,767, inclusive. See: ◄Value Property►
■ Horizontal and vertical scroll bars differ only in their orientation.
Dimensions correspond to the Height and Width property settings.
See: ◄Height Property► ◄Width Property►
■ The minimum sizes for scroll bar controls are 1 x 2 (horizontal) and
2 x 1 (vertical). Specified settings that are less than the minimum
value allowed are set to the minimum value.