This event is generated when a scroll bar is used to scroll the image
[Visual Basic]   imagekitcontrolname_ScrollDispImage(ByVal ScrollCode As Integer, ByVal Pos As Integer, ByVal Direction As MouseWheelConstants)
[Visual C++]     OnScrollDispImageimagekitcontrolname(short ScrollCode, short Pos, long Direction)
[VB.NET]   imagekitcontrolname_ScrollDispImage(ByVal sender As System.Object, ByVal e As AxImageKit10(A)Lib._IImageKitEvents_ScollDispImageEvent)
[C#.NET]   imagekitcontrolname_ScrollDispImage(object sender, AxImageKit10(A)Lib._IImageKitEvents_ScollDispImageEvent e)

AxImageKit10ALib refers to the ANSI version, AXImageKit10Lib refers to the Unicode version.

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
    the scroll box.

3: The vertical scroll bar was clicked below the scroll box or the horizontal scroll bar was clicked to the right of
    the scroll box.

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)

* The second parameter in VB.NET/C#.NET is e and it contains the ScrollCode and other arguments. (the first letter is lower case)

It is also possible to use the following constants (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.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation