API version 1
- ‐
setBgColor¶
指定の日付の背景に色を設定します。
呼出形式一覧
呼出形式 |
説明 |
---|---|
void setBgColor(date date, CRS::Common::UI::Color col) |
指定の日付の背景に色を設定します。 |
戻り値一覧
戻り値 |
説明 |
---|---|
void |
なし |
引数一覧
引数 |
説明 |
---|---|
date |
背景色を設定する日付。 |
col |
背景に設定する色。 |
例外
なし
関連項目
setFgColorメソッド
使用例
CRSダウンロード
Form Calendar {
x = 0;
y = 0;
width = 800;
height = 600;
Calendar calendar1 {
x = 16;
y = 16;
width = 248;
height = 184;
var days = new Date;
var dd = days.getDate() + 1;
days.setDate(dd);
var col = new Color(0xff00ff00);
setBgColor(days, col);
days.setDate(dd+1);
setFgColor(days,col);
}
Calendar calendar2 {
x = 272;
y = 16;
width = 240;
height = 184;
firstDayOfWeek = 1;
grid = true;
minimum = new Date(2020, 1, 1);
maximum = new Date(2020, 12, 31);
selected = new Date(2020, 6, 25);
weeknumbers = false;
setCurrentPage(2020, 6);
}
}