STK X Send comments on this topic.
Click Event (AgUiAx2DCntrl)
See Also  Example
Windows






Windows & Linux

Description

Occurs when the user presses and then releases a mouse button over the control.

Syntax

[Visual Basic .NET]
Public Event Click()

[C#]
public void Click();

[Managed C++]
public: void Click();

[Java]
public  click();

[Unmanaged C++]
public: HRESULT Click();

Remarks

Typically, you attach a Click event procedure to the control to carry out commands and command-like actions.

Clicking the Map control generates MouseDown and MouseUp events in addition to the Click event. These three events occur in this order: MouseDown, MouseUp, and Click. When you're attaching event procedures for these related events, be sure that their actions don't conflict.

Notes:

  • To distinguish between the left, right, and middle mouse buttons, use the MouseDown and MouseUp events.
  • If you need the current location of the mouse pointer, use the MouseDown and MouseUp events.

 

In VB.NET the Click event is shown as  "xxxxxxxx_ClickEvent" in the IDE.

Example

[Visual Basic .NET] Copy Code
Private Sub AxAgUiAx2DCntrl1_ClickEvent( _
                            ByVal sender As Object, _
                            ByVal e As System.EventArgs) _
                Handles AxAgUiAx2DCntrl1.ClickEvent
    ' Map control clicked
    ...
End Sub

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface