Window.topmost read/write property


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

local ui = require "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 ui.run(win1):wait()