Picture.enabled read/write property
Get or set the Picture ability to respond to mouse, and any other events. When set to false, disable the Picture (the user will not be able to interact with it), and picture's events won't be fired anymore.
Example
local ui = require "ui"
-- create a simple window
local win = ui.Window("Picture:onClick() sample", 340, 180)
local picture = ui.Picture(win, "examples/LuaRT.png", -74)
picture.cursor = "hand"
picture.enabled = false
-- Event won't be fired (picture is disabled)
function picture:onClick()
ui.info("You have clicked on the Picture !")
end
win:show()
repeat
ui.update()
until win.visible == false