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






Windows & Linux

Description

Numeric value of the mouse button pressed.

Members

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

Example

[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.2