List:tofront(widget)method


Brings the List in front of all other widgets, or in front of the specified widget.

Parameters

widget

The widget above which the List will be.

Return value

This function returns no value.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("List:tofront() sample", 400, 300) local widget = ui.List(win, {"I'am a List"}) widget:center() local button = ui.Button(win, "Click me to bring List to front") button:center() button:show() -- Button:onClick() event function button:onClick() widget:tofront() end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible