API version 1

- ‐

RW

integer

horzIconSpacing

アイコンの横方向の間隔をピクセル単位で指定します。

初期値は0です。

関連項目

vertIconSpacingプロパティ



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

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

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

           # 複数選択を行います
           selectionMode = MODE_MULTI;

           # アイコン間の横方向のスペースを設定します
           horzIconSpacing = 30;
           # アイコン間の縦方向のスペースを設定します
           vertIconSpacing = 20;

           IconViewItem items[80] {
                   for (var index = 0; index < this.length; index ++) {
                           var ic = new Image();
                           ic.loadImage("IconView_icon1" + str(index % 3 + 1) + ".png");
                           this[index].icon = ic;
                           this[index].title = "foo" + str(index + 1);
                   }
           };
   }
}