Calendar:onHover(x, y) event


This event is fired when the user moves the mouse pointer over the Calendar.

Parameters

x

The horizontal position of the mouse in the Calendar area (zero means the left border of the widget).

y

The vertical position of the mouse in the Calendar area (zero means the top border of the widget).

Return value

The event returns no value.

Example

local ui = require "ui" -- create a window local win = ui.Window("Calendar:onLeave() sample", 320, 210) --create a Calendar object local cal = ui.Calendar(win, 50) function cal:onHover() win:status("You are hovering Calendar widget") end function cal:onLeave() win:status("You are not hovering Calendar widget") end cal:onLeave() win:show() while win.visible do ui.update() end