Entry:onLeave() event
This event is fired when the mouse cursor leaves the Entry.
Return value
The event returns no value.Example
local ui = require "ui"
-- create a window
local win = ui.Window("Window:onLeave() sample", 320, 200)
local label = ui.Label(win, "Name : ", 80, 75)
local entry = ui.Entry(win, "", label.x + label.width + 8, label.y - 4, 100)
function entry:onHover()
win:status("Field name: Enter a valid name")
end
function entry:onLeave()
win:status("")
end
win:status()
ui.run(win):wait()