Combobox.enabled read/write property


Get or set the combobox ability to respond to mouse, and any other events. When set to false, disable the Combobox (the user will not be able to interact with it), and combobox's events won't be fired anymore.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Combobox.enabled sample", 320, 200) local combobox = ui.Combobox(win, {"I'm disabled :("}, 100, 80) combobox.selected = combobox.items[1] -- disable the combobox combobox.enabled = false win:show() -- update user interface repeat ui.update() until not win.visible