Radiobutton.x read/write property
Get or set the Radiobutton horizontal position. The horizontal position start from 0 (left side of the parent widget) and increase to the right (right side of the parent widget).
Example
local ui = require "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