Tab.enabled read/write property


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

When a Tab is disabled, the user cannot select Tabitems anymore, and any child controls

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Tab.enabled sample", 314, 214) local tab = ui.Tab(win, {"I'm disabled :(", "Item 1", "Item 2"}) local cb = ui.Combobox(tab.items[1], {"Item1", "Item2", "Item3"}) tab.enabled = false win:show() -- update user interface repeat ui.update() until not win.visible