Edit:onCaret() event
This event is fired when the Edit cursor position has changed.
Return value
The event returns no value.Example
local ui = require "ui"
local win = ui.Window("Edit:onChange() sample", "fixed", 340, 260)
local edit = ui.Edit(win, "Move the Edit caret to throw Edit:onCaret() event")
function edit:onCaret()
win:status("Line : "..edit.line, "Position : "..edit.column)
end
edit:onCaret()
edit.align = "all"
win:show()
while win.visible do
ui.update()
end