Tree:show() method
Show and activate the Tree (events can now be fired).
Return value
This function returns no value.Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Tree:show() sample", 320, 200)
local tree = ui.Tree(win, {"LuaRT"}, 110, 80)
tree.selected = tree.items[1]
tree.font = "Impact"
tree.fontsize = 18
-- Spawn a Task to hide/show tab every 500ms
async(function()
while true do
tree:hide()
sleep(500)
tree:show()
sleep(500)
end
end)
ui.run(win):wait()