Calendar object

The Calendar widget displays a date picker for selecting days

Event Description
Calendar:onClick() Event occurs when the user clicks on the Calendar
Calendar:onCreate() Event fired when Calendar has just been created
Calendar:onDrop() Event fired when the Calendar received a drag and drop content
Calendar:onHide() Event fired when the Calendar is hidden
Calendar:onHover() Event fired when the user moves the mouse pointer over the Calendar
Calendar:onLeave() Event fired when the mouse cursor leaves the Calendar
Calendar:onMouseDown() Event fired when the user presses a mouse button over the Calendar
Calendar:onMouseUp() Event fired when the user releases a mouse button over the Calendar
Calendar:onSelect() Event fired when the user selects an item in the Calendar
Calendar:onShow() Event fired when the Calendar is shown
Property Description Access Type
Calendar.align Align the Calendar relative to its parent readwrite boolean
Calendar.allowdrop Controls whether the Calendar is a drag and drop target readwrite boolean
Calendar.cursor Get/set the image of the mouse cursor as it hovers over the Calendar readwrite string
Calendar.enabled Controls whether the Calendar responds to mouse and other events readwrite boolean
Calendar.height Get/set the Calendar's height readwrite number
Calendar.parent Get the Calendar's parent widget readonly
Calendar.selected Get/set the selected date in the Calendar readwrite
Calendar.tooltip Get/set the Calendar tooltip text readwrite string
Calendar.visible Controls whether the Calendar appears on screen readwrite boolean
Calendar.width Get/set the Calendar's width readwrite number
Calendar.x Get/set the Calendar's horizontal position readwrite number
Calendar.y Get/set the Calendar's vertical position readwrite number
Methods Description Return value
Calendar:center() Centers the Calendar on the parent widget -
Calendar:constructor() Calendar object constructor
Calendar:hide() Hides the Calendar -
Calendar:show() Shows the Calendar -
Calendar:toback() Puts the widget to the back -
Calendar:tofront() Brings the widget in front -