Entry.enabled read/write property


Get or set the entry ability to respond to mouse, and any other events. When set to false, disable the Entry (the user will not be able to interact with it), and entry's events won't be fired anymore.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Entry.enabled sample", 320, 200) local entry = ui.Entry(win, "I'm disabled :(", 100, 80) -- disable the entry entry.enabled = false win:show() -- entry:onClick() event (won't be fired !) function entry:onClick() ui.info("You have clicked on the entry !!") end -- update user interface repeat ui.update() until not win.visible