Checkbox.y read/write property
Get or set the Checkbox 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
local ui = require "ui"
-- create a simple window
local win = ui.Window("Checkbox.y sample", 600, 300)
local checkbox = ui.Checkbox(win, "Check me !", 10, 140)
-- set a checkbox.onClick event handler
function checkbox:onClick()
self.x = math.random(500)
self.y = math.random(260)
end
-- shows the window
win:show()
-- update user interface
repeat
ui.update()
until not win.visible