ScrollBar
Object List Hierarchy Next Object
Copied From: Control
Definition:
Specifies whether an object has scroll bars. Scroll bars allow the user to
position to a particular location in text or graphics or to graphically set a
value.
Icon:
Added Features:
The following table lists and describes the properties added by ScrollBar. There are no added methods or events.
Properties Use to...
LargeChange Determine the amount of change that occurs to the Value property when the user
clicks the bar portion of the scroll bar.
Max Determine a scroll bar position’s maximum Value property setting.
Min Determine a scroll bar position’s minimum Value property setting.
Orientation Determine whether a scroll bar is horizontal or vertical.
SmallChange Determine the amount of change that occurs to the Value property when the user
clicks a scroll arrow.
Value Set or read the current position of the thumb on the scroll bar.
Events Use to...
Change Indicate that the contents of a control have changed and initiates some action.
GotFocus Define what occurs when an object is given the focus.
KeyDown Define what occurs when the user presses a key while an object has the focus.
KeyPress Define what occurs when the user presses and releases an ANSI key.
KeyUp Define what occurs when the user releases a key while an object has the focus.
LostFocus Define what occurs when an object loses the focus.
Scroll Determine when the thumb of the ScrollBar has been moved directly.
Copied Features:
Properties
Methods
Events
Details:
Scroll bars are most commonly used to control the vertical and horizontal
movement of a graphic view port or list. A scroll bar appears on an object if its
contents cannot be completely displayed in the designated area. They can also be
used as a visual method for setting a particular value.
Scroll bars consist of a horizontal or vertical bar with arrows at each end
and a scroll box, called a thumb, between the two arrows.
The position of the thumb on the scroll bar corresponds directly to the value
represented by the scroll bar. When the thumb is at the far left position on a
horizontal scroll bar, it corresponds to the scroll bar's minimum value
setting. The far right position of the thumb corresponds to the maximum value setting.
A minimum and maximum value on a vertical scroll bar is indicated by placing
the thumb at the top and bottom, respectively. Any other value places the thumb
at a position proportional to the value represented by the bar.
To increase or decrease the scroll bar value by small amounts, click on one of
the two arrows. Clicking within the scroll bar area to either side of the
thumb allows larger amounts of change. You can also click and drag the thumb to the
desired position on the bar, and the value is set accordingly. The value of a
scroll bar can also be set in the program's code.