API version 1
- ‐
RW
boolean
checkBoxes¶
アイテムにチェックボックスを表示するか否かを指定します。
true の時はチェックボックスを表示し、falseの時はチェックボックスを表示しません。
初期値はfalseです。
関連項目
IconViewItem.checkedプロパティ
使用例
CRSダウンロード
ダウンロード(IconView_icon11.png)
Form IconView_checkBoxes {
x = 0;
y = 0;
width = 800;
height = 600;
IconView iconView1 {
x = 8;
y = 8;
width = 640;
height = 480;
# チェックボックスを表示します
checkboxes = true;
IconViewItem items[3] {
var ic1 = new Image();
ic1.loadImage("IconView_icon11.png");
this[0].title = "foo1";
this[0].icon = ic1;
this[1].title = "foo2";
this[1].icon = ic1;
this[2].title = "foo3";
this[2].icon = ic1;
function onCheckChanged(e) {
print("アイテム " + e.from.title + " のチェックボックスがクリックされました。現在の値: " + str(e.from.checked));
}
};
}
}