Max Property
Object List Next Object
Defined By: ScrollBar
Description:
Determines a scroll bar position’s maximum Value property setting when the scroll box is in its bottommost
position (vertical scroll bar) or rightmost position (horizontal scroll bar). Used
in combination with Min to determine the upper and lower limits of the range.
Settings:
The valid range is an integer between -32,768 to 32,767, inclusive. The
default is 32,767.
Details:
For many objects, the Windows environment automatically sets ranges for scroll
bars that are proportional to the amount of data the object contains. For a
scroll bar control, you must set specific values for these ranges. Use Max and
Min to set an appropriate scrolling range based on how the scroll bar is used in
your program.
Usually, you set the Max property while you are designing your program. You
can also set it in code while the program is running to accomodate a dynamic
scrolling range. You set the maximum and minimum scrolling increments for a scroll
bar control with the LargeChange and SmallChange properties.
If Max is set to a value that is less than Min, the maximum value is then set
at the minimum position on the scroll bar.
Data Type: Integer
See Also:
LargeChange, SmallChange properties