Calendar:constructor(parent, [x], [y], [width], [height])constructor


The Calendar constructor returns a Calendar value representing a month calendar to choose a date.

Parameters

parent

An object that will own the Calendar. Parent objects can be any of Window, Groupbox, TabItem and Panel

[x]

An optional number that indicates the Calendar horizontal position, in pixels. Zero means the left border of the parent.

[y]

An optional number that indicates the Calendar vertical position, in pixels. Zero means the top border of the parent.

[width]

An optional number that indicates the Calendar width in pixels, autosized to fit text content if omitted.

[height]

An optional number that indicates the Calendar height in pixels, autosized to fit text content if omitted.

Return value

The constructor returns a new Calendar instance.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("Calendar.cursor sample", 320, 200) ui.Calendar(win, 50, 20) win:show() -- update user interface repeat ui.update() until not win.visible