Window.topmost readwrite


Get or set the Window capability to always stay over other windows, a true value means that the window will always stay at the top position.

Example

Example

--! luart-extensions import ui -- create a simple window local win1 = ui.Window("Topmost Window", "fixed", 320, 200) local win2 = ui.Window("Normal Window", "fixed", 320, 200) function win1:onShow() win1:center() win2.x = win1.x + 100 win2.y = win1.y + 50 win1.topmost = true win2:show() end -- update user interface await win1:showasync()