Picture.parent readonly property


Get the parent object that owns the Picture.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Picture.parent sample", 340, 200) local picture = ui.Picture(win, "examples/LuaRT.png", -74) local button = ui.Button(win, "Show Picture parent", 120, 170) function button:onClick() ui.info("Picture's parent is "..tostring(picture.parent)) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible