Combobox.parent readonly property


Get the parent object that owns the Combobox.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Combobox.parent sample", 320, 200) local combobox = ui.Combobox(win, {'Item 1', "Item 2"}, 115, 80) local button = ui.Button(win, '"Show Combobox parent"', 90, 50) combobox.selected = combobox.items[1] function button:onClick() ui.info("Combobox's parent is "..tostring(combobox.parent)) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible