Entry.parent readonly property


Get the parent object that owns the Entry.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Entry.parent sample", 320, 200) local entry = ui.Entry(win, "Hello World !", 115, 80) local button = ui.Button(win, "Show Entry parent", 100, 10) function button:onClick() ui.info("Entry's parent is "..tostring(entry.parent)) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible