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.
Max, Min Property Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
[form.]{hscrollbar. | vscrollbar.}Max[ = limit%]
[form.]{hscrollbar. | vscrollbar.}Min[ = limit%]
Usage Notes
■ The operating environment automatically sets ranges for scroll bars
proportional to the contents of forms, combo boxes, and list boxes. For
a scroll bar control, however, you must specify these ranges. Use Max
and Min to set a range appropriate to how the scroll bar control is
used - for example, as an input device, or to indicate speed, velocity,
or quantity. See: ◄Horizontal Scroll Bar Control►
◄Vertical Scroll Bar Control►
■ Max and Min determine the Value property settings depending on the
position of the scroll box and the type of scroll bar used:
Scroll Box Position Scroll Bar Value Setting
═══════════════════ ══════════ ════════════════════════════════════
Top Vertical Max
Bottom Vertical Min
Far left Horizontal Min
Far right Horizontal Max
───────────────────────────────────────────────────────────────────────
See: ◄Scroll Box Definition► ◄Value Property►
■ If Max is set to a value less than Min, the setting is ignored and
Max is instead set equal to Min. This visually sets the scroll bar at
the leftmost or topmost position of a horizontal or vertical scroll bar,
respectively.
■ Typically, you set Max and Min at design time. You can also set them
in code at run time if the scrolling range must change dynamically -
for example, when adding records to a database that can be browsed
with a scroll bar.
■ You set the maximum and minimum scrolling increments for a scroll bar
control with the LargeChange and SmallChange properties.
See: ◄LargeChange Property► ◄SmallChange Property►