Skip to content

SetWebFrameZ

Sets which frame is drawn above which.

A frame with a higher z is drawn over one with a lower; the interface’s ui.toml gives every frame its starting z. The value is a whole number from 0 to 999 (a fraction is rounded). When the frame is made again its own z from ui.toml applies once more.

Returns true when the request was handed over, false and the reason when it could not be: "no web layer", "no web interface", "no such frame" or "z is a number from 0 to 999".

SetWebFrameZ(frame, z)
Parameter Type
frame string the frame’s name
z number 0 to 999

true, or false, reason - the reason as a person reads it

-- a notice frame goes above everything for a moment
SetWebFrameZ("notice", 900)

ShowWebFrame · HideWebFrame · the Web interface group of the index