klyn.gui.windows.events.ContextMenuEvent.ContextMenuEvent
constructor

    public ContextMenuEvent(source as Object, index as Int, item as MenuItem):

Description

Creates a context-menu selection event.

Parameters

Parameter | Description
--- | ---
`source` | Context menu that emitted the event.
`index` | Zero-based selected-entry index.
`item` | Selected menu entry.

Example

    event = ContextMenuEvent(menu, 0, MenuItem("Open"))