ContextMenuEvent
class in package klyn.gui.windows.events

    public class ContextMenuEvent extends GuiEvent:

Event
└ GuiEvent
└ ContextMenuEvent

Event emitted after a context-menu entry is selected.

    menu.selected += lambda(event: ContextMenuEvent): print(event.item.text)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | index `index as Int` | Zero-based index of the selected entry.
public readonly property | item `item as MenuItem` | Selected menu entry.

Inherited Properties
property Inherited Properties from Event: source, timestamp
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ContextMenuEvent `ContextMenuEvent(source as Object, index as Int, item as MenuItem):` | Creates a context-menu selection event.