Scroll
Top  Previous  Next

Description

This event is fired each time the live video display has been scrolled. Returns the horizontal and vertical scroll positions.


Syntax


[VB]
Private Sub objActiveGige_Scroll( ByVal X As Integer, ByVal Y As Integer )


[C/C++]
HRESULT Fire_Scroll( SHORT ScrollX, SHORT ScrollY );


Data Types
[VB]

ScrollX: Integer
ScrollY: Integer


Parameters
[C/C++]

ScrollX [in]  
The X-coordinate of the pixel pointed by the cursor.  
ScrollY [in]  
The Y-coordinate of the pixel pointed by the cursor.  
   

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the Scroll event to display the position of the live video in the control window:

Private Sub ActiveGige1_Scroll(ByVal ScrollX As IntegerByVal ScrollY As Integer)  
Label1.Caption = ScrollX  
Label2.Caption = ScrollY  
End Sub  
 

Remarks


Note that the scroll positions returned by this event refer to the image coordinate system, not to the screen coordinates.

The ScrollBars properties to TRUE in order for the Scroll event to be fired.