Parameters
Name | Explanation |
---|---|
ScrollCode | This parameter returns different values depending
on how the scrollbar was used.
0: The up arrow on the vertical scroll bar or the left arrow on the horizontal scroll bar was clicked. 1: The down arrow on the vertical scroll bar or the right arrow on the horizontal scroll bar was clicked. 2: The vertical scroll bar was clicked above the scroll box or
the horizontal scroll bar was clicked to the left of 3: The vertical scroll bar was clicked below the scroll box or
the horizontal scroll bar was clicked to the right of 5: The scroll box was used to scroll. 6: The scroll box was moved to the top position (or the far left position). 7: The scroll boxwas moved to the bottom position (or the far right position). |
Pos | Returns the current position of the scroll box |
Direction | The scroll direction: (1: vertical, 2: horizontal) |
It is also possible to use the following constants in Visual Basic (ikVertical = 1, ikHorizontal = 2)
Explanation
The ScrollDispImage event is generated when a scroll bar is used to scroll the image. To generate this event, the image must be displayed in actual size and the ScrollBar property must be True.
Note: This event is not generated when a mouse drag is used to scroll the image (when the MouseDragImage property is true). It is only generated when the scroll bar or scroll box is clicked.