Progressbar.enabled read/write property
Get or set the Progressbar ability to respond to mouse, and any other events. When set to false, disable the Progressbar (the user will not be able to interact with it), and label's events won't be fired anymore.
Example
local ui = require "ui"
-- create a simple Window
local win = ui.Window("Progressbar.enabled sample", 320, 200)
local pb = ui.Progressbar(win)
pb.position = 80
pb:center()
-- disable the label
pb.enabled = false
win:show()
-- label:onClick() event (won't be fired !)
function pb:onClick()
ui.info("You have clicked on the label !!")
end
-- update user interface
repeat
ui.update()
until not win.visible