Combobox:center() method
Centers the Combobox on the parent widget.
Return value
This function returns no value.Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Combobox:center() sample", 320, 240)
local cb = ui.Combobox(win, {"Item 1", "Item 2", "Item 3"})
ui.Button(win, "Center Combobox", 112, 210).onClick = function (self)
cb:center()
end
win:show()
-- update the user interface until the user closes the Window
repeat
ui.update()
until not win.visible