public MenuItem( text as String = "", icon as String = "", shortcut as String = "", subMenu as Menu = null, isCheckable as Boolean = false, isChecked as Boolean = false ):
Creates a menu item.
| 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. |
isCheckable | Whether activation toggles a check indicator. |
isChecked | Initial checked state. |
autoSave = MenuItem( "&Auto Save", shortcut="Ctrl+Alt+S", isCheckable=true, isChecked=true )