Progressbar.parent readonly property


Get the parent object that owns the Progressbar.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Progressbar.parent sample", 320, 200) local pb = ui.Progressbar(win) pb:center() local button = ui.Button(win, "Show Progressbar parent") button:center() button.y = 20 function button:onClick() ui.info("Progressbar's parent is "..tostring(pb.parent)) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible