Checkbox:toback( widget ) method
Puts the Checkbox behind all other widgets, or behind the specified widget.
Parameters
widget
The widget below which the Checkbox will be.
Return value
This function returns no value.Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Checkbox:toback() sample", 400, 300)
local widget = ui.Checkbox(win, "I'm a Checkbox")
widget:center()
local button = ui.Button(win, "Click me to put me in the back")
button:center()
button:show()
-- Button:onClick() event
function button:onClick()
self:toback()
end
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible