Edit.canundo readonly


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

Example

--! luart-extensions import ui -- create a fixed Window to hold the buttons local win = ui.Window("Edit.canundo 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.canundo : "..tostring(edit.canundo)) end edit:onChange() win:show() -- update user interface repeat ui.update() until not win.visible