Radiobutton.y readwrite


Get or set the Radiobutton vertical position. The vertical position start from 0 (top side of the parent widget) and increase to the bottom side of the parent widget.

Example

--! luart-extensions import ui -- create a simple window local win = ui.Window("Radiobutton.y sample", 600, 300) local radiobutton = ui.Radiobutton(win, "Check me !", 10, 140) -- set a radiobutton.onClick event handler function radiobutton:onClick() self.x = math.random(500) self.y = math.random(250) end -- shows the window win:show() -- update user interface repeat ui.update() until not win.visible