MenuBase
Base class of menu bar and popup menu.
Module | require("gui") |
Type | Class |
Methods
append(item)
Append the item
to the menu.
Parameters
MenuItem
item
insert(item, index)
Insert the item
at index
to the menu.
Parameters
MenuItem
itemInteger
index
remove(item)
Remove the item
from the menu.
Parameters
MenuItem
item
itemCount()
Return the count of items in the menu.
Return
Integer
itemAt(index)
Return the item at index
.
Parameters
Integer
index
Return
MenuItem