Combobox.y read/write property
Get or set the Combobox 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("Combobox.y sample", 600, 300)
local button = ui.Button(win, "Change ComboBox position", 240)
local combobox = ui.Combobox(win, {'Item 1', 'Item 2'}, 10, 140)
combobox.text = "Catch me !"
function button:onClick()
combobox.x = math.random(10, win.width-combobox.width)
combobox.y = math.random(160, win.height-combobox.height)
end
-- shows the window
win:show()
-- update user interface and increase Combobox horizontal position
repeat
ui.update()
until not win.visible