This event is generated when a scroll bar is used to scroll the image

[C++Builder]   imagekitcontrolnameScrollDispImage(TObject *Sender, TScrollCode ScrollCode, short Pos, TVIkMouseWheel Direction)
[Delphi]   imagekitcontrolnameScrollDispImage(Sender: TObject; ScrollCode: TScrollCode; Pos: Smallint; Direction: TVIkMouseWheel)

[TVIkMouseWheel Type]

Unit
     IkInit

type
     TVIkMouseWheel = (vikDisable, vikVertical, vikHorizontal);

Parameters

Name Explanation
ScrollCode This parameter returns different values depending on how the scrollbar was used.

scLineUp: The up arrow on the vertical scroll bar or the left arrow on the horizontal scroll bar was clicked.

scLineDown: The down arrow on the vertical scroll bar or the right arrow on the horizontal scroll bar was clicked.

scPageUp: The vertical scroll bar was clicked above the scroll box or the horizontal scroll bar was clicked to the left of the scroll box.

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

scTrack: The scroll box was used to scroll.

scTop: The scroll box was moved to the top position (or the far left position).

scBottom: The scroll box was moved to the bottom position (or the far right position).

Pos Returns the current position of the scroll box
Direction The scroll direction: (vikVertical: vertical, vikHorizontal: horizontal)

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.

Differences from ImageKit 7/8/9/10 ActiveX

The ScrollCode parameter type has been changed to TScrollCode
The VCL constants have a "v". In ActiveX, the constants are vikDisable, vikVertical, and vikHorizontal

 

The ImageKit10 VCL is a product created by Newtone Corporation