Entry.visible read/write property


Get or set the entry visibility on screen, a true value means that the Entry is shown, a false value means that the Entry is hidden.

Example

local ui = require "ui" -- create a simple entry local win = ui.Window("Entry.visible sample", 320, 200) local entry = ui.Entry(win, "LuaRT", 120, 70) local button = ui.Button(win, "Click to hide entry", 110, 10) entry.font = "Impact" entry.fontsize = 24 -- hides the entry and shows it again after 2 sec function button:onClick() entry.visible = false button.enabled = false sleep(2000) button.enabled = true entry.visible = true end ui.run(win):wait()