Calendar.height read/write property


Get or set the height of the Calendar area. The height starts from 0 (top side of the Calendar) and increase to the bottom direction.

Example

local ui = require "ui" -- create a simple Window local win = ui.Window("Calendar.height sample", 320, 230) local calendar = ui.Calendar(win, 50, 40) local inc_btn = ui.Button(win, "Increase Calendar.height !", 15, 10) local dec_btn = ui.Button(win, "Decrease Calendar.height", inc_btn.x+150, inc_btn.y) calendar.fontstyle = { bold = true } function inc_btn:onClick() local delta if self == inc_btn then delta = 10 else delta = -10 end calendar.height = calendar.height + delta end dec_btn.onClick = inc_btn.onClick -- shows the Window win:show() -- update user interface repeat ui.update() until not win.visible