Picture:onClick() event
This event is fired when the user has clicked on the Picture.
Return value
The event returns no value.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"
function picture:onClick()
ui.info("You have clicked on the Picture !")
end
win:show()
repeat
ui.update()
until win.visible == false