ArcObjects Library Reference (Controls)  

IToolbarControlEvents.OnItemClick Event

Fires after an item on the ToolbarControl is pressed.

[Visual Basic 6.0]
Event OnItemClick(
    ByVal index As Long _
) As Empty
[Visual Basic .NET]
Public Event OnItemClick As OnItemClickEventHandler
[C#]
public event OnItemClickEventHandler OnItemClick
[C++]
HRESULT OnItemClick(
  long index
);
[C++]

Parameters

index [in]   index is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

The OnItemClick event is triggered when the user presses the left mouse button on a ToolbarControl item. If the item is disabled the event is not triggered.

index specifies the index value of the item pressed.

Remarks

The event sequence is as follows:

OnMouseDown
OnMouseUp
OnItemClick

See Also

IToolbarControlEvents Interface