DockTabContextMenuEvent
classin packageklyn.gui.windows.events
public class DockTabContextMenuEvent extends GuiEvent:
└ DockTabContextMenuEvent

Event emitted before a DockCenterArea tab context menu opens.

Applications may append domain-specific actions to menu. The standard close actions are already present and remain owned by the dock workspace.

center.tabContextMenuOpening += lambda(event as DockTabContextMenuEvent):
event.menu.addItem(MenuItem("Reveal in Project"))
Properties
Modifier and Type Member Description
public readonly property index
index as Int
Zero-based index of the tab receiving the context menu.
public readonly property menu
menu as Menu
Mutable menu containing the standard document-tab actions.
public readonly property title
title as String
Current tab title.
public readonly property widget
widget as Widget
Widget hosted by the tab.
Inherited Properties
propertyInherited Properties from Event: source, timestamp
Constructors
Modifier and Type Member Description
public DockTabContextMenuEvent
DockTabContextMenuEvent( source as Object, index as Int, title as String, widget as Widget, menu as Menu ):
Creates a dock-tab context-menu event.