API version 1

- ‐

RW

boolean

editable

アイテムの項目名が編集可能かどうかを指定します。

trueの時は編集できますが、falseの時は編集できません。

初期値はfalseです。

関連項目

IconViewItem.EndLabelEditイベント



使用例 CRSダウンロード ダウンロード(IconView_icon11.png)

Form IconView_editable {
   x = 0;
   y = 0;
   width = 800;
   height = 600;

   IconView iconView1 {
           x = 8;
           y = 8;
           width = 640;
           height = 480;

           # アイテム名を編集可能にします
           editable = 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 onEndLabelEdit(e)
                   {
                           if (e.cancel == true) {
                                   print("ラベルの編集はキャンセルされました");
                           } else {
                                   print("ラベルが変更されました。新しいラベルは " + e.from.title + "です");
                           }
                   }
           };
   }
}