Menu.constructor([itemtext1], [itemtext2]...) constructor


The Menu constructor returns a Menu value representing a popup or window menu.

Parameters

[itemtext1]...

A list of optional strings that represent items captions in the Menu.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Menu:onClick() sample", 316, 246) win.menu = ui.Menu("Item1", "Item2", "Item3") -- shows the Window win:show() -- update user interface repeat ui.update() until not win.visible