Menu:constructor()constructor


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

Return value

The constructor returns a new Menu instance.

Example

--! luart-extensions import 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