Entry.canundo readonly property


Get a boolean value, indicating wether the user can undo the last Entry operation.

Example

local ui = require "ui" -- create a fixed Window to hold the buttons local win = ui.Window("Entry.canundo sample", "fixed", 320, 200) local label = ui.Label(win, "Enter text : ", 60, 80) local entry = ui.Entry(win, "", label.x + label.width + 8, label.y-4) function entry:onChange() win:status("Entry.canundo : "..tostring(entry.canundo)) end entry:onChange() win:show() -- update user interface repeat ui.update() until not win.visible