API version 1

- ‐

RW

*

value

ラベルに表示する値です。

subTypeに指定したデータ型の値を保持します。

関連項目

richText プロパティ



使用例 CRSダウンロード ダウンロード(neko1.jpg)

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

       /*
         画像(neko1.jpg)とcrsは同じディレクトリで実行してください
        Designerでの実行の場合は画像をプロジェクトに登録します。
        */

   Image Image1 {
           var fs = new FileSystem;
           var file1 = fs.Open("neko1.jpg",FileSystem.OPEN_READ);
        /* LoadImage(file1); */
           LoadImage("neko1.jpg");
   }

   Label obj_Label1[2] {
           x = 32;
           y = 16;
           width = 101;
           height = 22;
           HorizontalAlign =02 ;
           Border = BORDER_SUNKEN;
           this[0].Value = "@\" TEST\"";
           this[1].Value = "\"TEST \"@";
   }
   Label obj_Label2[6] {
           x = 48;
           y = 72;
           width = 100;
           height = 20;
           this[0].Value    = "999,999,990";
           this[1].Value    = ",";
           this[2].Value    = "999,999,999.9";
           this[3].Value    = "999,999,999.00";
           this[4].Value    = ","+".9";
           this[5].Value    = "フォーマットなし";
           Border = BORDER_SUNKEN;
           HorizontalAlign = 2;
   }

   Label:Number obj2[6] {
           x = 168;
           y = 72;
           width = 120;
           height = 20;
           FgColor = "BLACK";
           HorizontalAlign =0;
           Border = BORDER_SUNKEN;
           this[0].Format = "999,999,990";
           this[1].Format = ",";
           this[2].Format = "999,999,999.9";
           this[3].Format = "999,999,999.00";
           this[4].Format = ","+".9";
           this[5].Format = "";
   }

   Button Button2 {
           x = 168;
           y = 32;
           width = 84;
           height = 33;
           Title = "データセット\n12345678.901";

           Function OnTouch( e ) {
                   ^.obj2.Value = "12345678.901";
           }
   }
           Button Button3 {
           x = 264;
           y = 32;
           Width = 83;
           Height = 33;
           title = "Clear";

           Function OnTouch( e ) {
                   ^.obj2.Clear();
           }
   }
   Label Label_resize {
           x = 48;
           y = 216;
           width = 176;
           height = 160;
           Border = BORDER_SUNKEN;
           image = ^.image1;
   }
   Label maruneko {
           x = 240;
           y = 216;
           width = 160;
           height = 120;
           Border = BORDER_SUNKEN;
           resize = RESIZE_FREE ;
           imagewidth &= width;
           imageheight &= height;
           image = ^.image1;
   }
   Label Label5 {
           x = 336;
           y = 136;
           width = 144;
           height = 70;
           value = "ALIGN_STD wordWrap Nekomoni style";
           wordWrap = true;
           Border = BORDER_SUNKEN;
           verticalAlign = DisplayObject.ALIGN_STD;
   }

   Label Label6 {
           x = 328;
           y = 80;
           width = 148;
           Height = 23;
           richText = TRUE ;
           Value = "<a href=\"test.html\">richText プロパティ テスト</a>";
           BgColor = Color.White;
   }
}