Progressbar:center()method


Centers the Progressbar on the parent widget.

Return value

This function returns no value.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("Progressbar:center() sample", 320, 200) ui.Progressbar(win).onClick = function (self) self:center() end win:status("Click on the Progressbar to center it") win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible