Entry.x read/write property


Get or set the Entry horizontal position. The horizontal position start from 0 (left side of the parent widget) and increase to the right (right side of the parent widget).

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Entry.x sample", 600, 300) local entry = ui.Entry(win, "Hello LuaRT !", 10, 140) -- shows the window win:show() -- update user interface and increase Entry horizontal position repeat ui.update() entry.x = entry.x + 1 until not win.visible or (entry.x > 600)