Combobox:show() method
Show and activate the Combobox (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("Combobox:hide() sample", 320, 200)
local combobox = ui.Combobox(win, {"LuaRT"}, 110, 80)
combobox.selected = combobox.items[1]
combobox.font = "Impact"
combobox.fontsize = 18
-- Spawn a Task to hide/show combobox every 500ms
async(function()
while true do
combobox:show()
sleep(500)
combobox:hide()
sleep(500)
end
end)
ui.run(win):wait()