klyn.gui.windows.MenuItem.MenuItem
constructor

    public MenuItem(text as String = "", icon as String = "", shortcut as String = "", subMenu as Menu = null):

Description

Creates a menu item.

Parameters

Parameter | Description
--- | ---
`text` | Display text, optionally containing an `&` mnemonic.
`icon` | SVG or raster icon filename.
`shortcut` | Human-readable keyboard shortcut.
`subMenu` | Child menu opened from this entry.

Example

    save = MenuItem("&Save", "S", "Ctrl+S")