event SelectItem (Itm as Item)
Occurs when the user selects the item.

TypeDescription
Itm as Item An Item object being clicked.
The SelectItem event notifies your application once the user clicks an item. By default, the eXContextMenu's Select method is modal, so the component waits for the user to select an item which ID is returned by the method once the drop down is closed. In other words, you do not need to handle the SelectItem event to get the item being selected/clicked, instead the Select method returns the ID of the Item being clicked. The CloseOnClick property specifies when the user closes the context menu. By default, the context menu is closed if the user clicks outside of the menu, clicks a regular item ( a regular item is an item that includes no sub-menu, and no check or radio buttons ). In C++ or VFP, you can use the Notifier to get notified through the WM_COMMAND message.

Syntax for SelectItem event, /NET version, on:

private void SelectItem(object sender,exontrol.EXCONTEXTMENULib.item Itm)
{
}

Private Sub SelectItem(ByVal sender As System.Object,ByVal Itm As exontrol.EXCONTEXTMENULib.item) Handles SelectItem
End Sub

Syntax for SelectItem event, /COM version, on:

private void SelectItem(object sender, AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent e)
{
}

void OnSelectItem(LPDISPATCH Itm)
{
}

void __fastcall SelectItem(TObject *Sender,Excontextmenulib_tlb::IItem *Itm)
{
}

procedure SelectItem(ASender: TObject; Itm : IItem);
begin
end;

procedure SelectItem(sender: System.Object; e: AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent);
begin
end;

begin event SelectItem(oleobject Itm)
end event SelectItem

Private Sub SelectItem(ByVal sender As System.Object, ByVal e As AxEXCONTEXTMENULib._IExContextMenuEvents_SelectItemEvent) Handles SelectItem
End Sub

Private Sub SelectItem(ByVal Itm As EXCONTEXTMENULibCtl.IItem)
End Sub

Private Sub SelectItem(ByVal Itm As Object)
End Sub

LPARAMETERS Itm

PROCEDURE OnSelectItem(oExContextMenu,Itm)
RETURN

Syntax for SelectItem event, /COM version (others), on:

<SCRIPT EVENT="SelectItem(Itm)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function SelectItem(Itm)
End Function
</SCRIPT>

Procedure OnComSelectItem Variant llItm
	Forward Send OnComSelectItem llItm
End_Procedure

METHOD OCX_SelectItem(Itm) CLASS MainDialog
RETURN NIL

void onEvent_SelectItem(COM _Itm)
{
}

function SelectItem as v (Itm as OLE::Exontrol.ContextMenu.1::IItem)
end function

function nativeObject_SelectItem(Itm)
return