IR Framework

Calendar Example


this.Parent.cal = new Application.Calendar(this.Parent);
with (this.Parent.cal) {
	Target(this.Parent.lblDate);
	ColorToday("ffff00");
	Show();
	
	for (var i = j = 200; i < 400; i += 20, j += 20) {
		Height(i);
		Width(j);
		ColorDefault("88" + (i - 160).toString(16) + (j - 160).toString(16));
		DoEvents();
	}
	for (var i = 400; i > 200; i -= 20) {
		Height(i);
		Width(j);
		ColorDefault("88" + (i - 160).toString(16) + (j - 160).toString(16));
		DoEvents();
	}
	for (var i = 200, j = 400; i < 400; i += 20, j -= 20) {
		Height(i);
		Width(j);
		ColorDefault("88" + (i - 160).toString(16) + (j - 160).toString(16));
		DoEvents();
	}
	for (var i = 400; i > 200; i -= 20) {
		Height(i);
		Width(j);
		ColorDefault("88" + (i - 160).toString(16) + (j - 160).toString(16));
		DoEvents();
	}
}