STK X Send comments on this topic.
AgEButtonValues Enumeration
See Also  Example

Windows & Linux


Numeric value of the mouse button pressed.


Member Value Description
eLeftPressed 1 The left button is pressed.
eRightPressed 2 The right button is pressed.
eMiddlePressed 4 The middle button is pressed.


[Visual Basic .NET] Copy Code
Private Sub AxAgUiAx2DCntrl1_MouseMoveEvent( _
                            ByVal sender As Object, _
                            ByVal e As AxAGI.STKX.IAgUiAx2DCntrlEvents_MouseMoveEvent) _
                  Handles AxAgUiAx2DCntrl1.MouseMoveEvent

    If (e.button And AGI.STKX.AgEButtonValues.eMiddlePressed) <> 0 Then
    End If

End Sub
© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK Engine for UNIX 11.3.0