MouseDbClick
Top  Previous  Next

Description

This event is fired each time the mouse button is double-clicked inside the control window. Returns the coordinates of a pixel pointed by the cursor.


Syntax


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


[C/C++]
HRESULT Fire_MouseDblClick( SHORT X, SHORT Y );


Data Types
[VB]

X: Integer
Y: Integer

Parameters
[C/C++]

X [in]  
The X-coordinate of the pixel pointed by the cursor.  
Y [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 MouseDblClick event to open the Properties dialog:

Private Sub ActiveDcam1_MouseDblClick(ByVal X As IntegerByVal Y As Integer)  
      
Dim 
Value As 
Integer
   
      Value = ActiveDcam1.ShowProperties
End Sub  
 

Remarks


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

Set the Acquire and ScrollBars properties to TRUE in order to display a scrollable live video and get a visual access to all parts of the image.