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