Edit.canredo readonly property


Get a boolean value, indicating wether the user can redo the last Edit operation.

Example

local ui = require "ui" -- create a fixed Window to hold the buttons local win = ui.Window("Edit.canredo sample", "fixed", 340, 260) local label = ui.Label(win, "Enter text : ", 10, 20) local edit = ui.Edit(win, "", label.x + label.width + 8, label.y, 250, 200) function edit:onChange() win:status("Edit.canredo : "..tostring(edit.canredo)) end edit:onChange() win:show() -- update user interface repeat ui.update() until not win.visible