This event is generated when the mouse moves over the image
[Visual Basic]   imagekitcontrolname_MouseMoveImage(ByVal Button As Integer, ByVal Shift As Integer, ByVal OriginX As Long, ByVal OriginY As Long, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal ScaleWidth As Double, ByVal ScaleHeight As Double, ByVal x As Long, ByVal y As Long)
[Visual C++]     OnMouseMoveImageimagekitcontrolname(short Button, short Shift, long OriginX, long OriginY, long Left, long Top, long Right, long Bottom, double ScaleWidth, double ScaleHeight, long x, long y)
[VB.NET]   imagekitcontrolname_MouseMoveImage(ByVal sender As System.Object, ByVal e As AxImageKit10(A)Lib._IImageKitEvents_MouseMoveImageEvent)
[C#.NET]   imagekitcontrolname_MouseMoveImage(object sender, AxImageKit10(A)Lib._IImageKitEvents_MouseMoveImageEvent e)

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

Parameters

Name Explanation
Button The type of button clicked (1: Left Button, 2: Right Button, 4: Center Button)
Shift The type of key pressed (0: None, 1: Shift Key, 2: Ctrl Key, 4: Alt Key)
OriginX The horizontal distance from the left side of the ImageKit Control to the left side of the image.
(If the image is larger than the ImageKit Control in the horizontal direction, OriginX will equal 0.)
OriginY The vertical distance from the top of the ImageKit Control to the top of the image.
(If the image is larger than the ImageKit Control in the vertical direction, OriginY will equal 0.)
Left The horizontal distance from the left side of the actual image to the left side of that portion of the image currently being displayed.
Top The vertical distance from the top of the actual image to the top of that portion of the image currently being displayed.
Right The horizontal distance from the left side of the actual image to the right side of that portion of the image currently being displayed.
Bottom The vertical distance from the top of the actual image to the top of that portion of the image currently being displayed.
ScaleWidth The horizontal scale between the displayed portion of the image and the actual image.
ScaleHeight The vertical scale between the original image and the displayed image.
x, y The coordinates on the image where the mouse move occurred.

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

The values are in pixels.

Explanation

The MouseMoveImage event is generated when the mouse moves over the image. This event is enabled when a valid image handle is set in the ImageHandle property or the Layer(Index).ImageHandle property.

Note: The MouseMoveImage event is generated before the standard MouseMove event.

When multiple keys are pressed the result calculated as a "Bitwise OR operation", meaning, for example, that if both the Ctrl key and the Alt key were pressed, the value of shift would be 6.

The OriginX parameter and the OriginY parameter depend on the values set in the BorderVisible, Appearance, and Grad properties.

Note for Visual Basic:

In order to use the Left($) function and Right($) function within this event, please change the names of the Left and Right parameters of this event.

For Example:

   Private Sub ImageKit1_MouseMoveImage(ByVal Button As Integer, ByVal Shift As Integer, ByVal OriginX As Long, ByVal OriginY As Long, ByVal Left_ As Long,
   BByVal Top As Long, ByVal Right_ As Long, ByVal Bottom As Long, ByVal ScaleWidth As Double, ByVal ScaleHeight As Double, ByVal x As Long, ByVal y As Long)

   End Sub

 

The ImageKit10 ActiveX is a product created by Newtone Corporation