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