API version 1

- ‐

RW

number

verticalScale

フォーム上に所属するオブジェクトの縦方向の拡大縮小倍率を指定します。

範囲は0.1~1.0(等倍)~10までです。

この指定によりフォーム上のオブジェクトのプロパティが変更されることはありません。 拡大縮小されるオブジェクトは単純に表示が拡大縮小される訳ではなく、各クラス独自の表示が行われます。

関連項目

fontScalehorizontalScale プロパティ



使用例 CRSダウンロード

Form Form_use {
   x = 0;
   y = 0;
   width = 505;
   height = 537;

   /* 0.5 - 2 くらいを目安に数字をセットしてボタンを押します */
   Label Label11 {
           x = 18;
           y = 18;
           width = 100;
           height = 20;
           Value = "horizontalScale";
   }
   TextBox TextBox11 {
           x = 118;
           y = 18;
           width = 100;
           height = 20;
           value = "1";
   }

   Label Label12 {
           x = 18;
           y = 43;
           width = 100;
           height = 20;
           Value = "verticalScale";
   }
   TextBox TextBox12 {
           x = 118;
           y = 43;
           width = 100;
           height = 20;
           value = "1";
   }

   Label Label13 {
           x = 18;
           y = 68;
           width = 100;
           height = 20;
           Value = "fontScale";
   }
   TextBox TextBox13 {
           x = 118;
           y = 68;
           width = 100;
           height = 20;
           value = "1";
   }
   Button Button13 {
           x = 228;
           y = 68;
           width = 50;
           height = 20;
           Title = "SET";

           Function OnTouch(e) {
                   try {
                           ^.^.Form_use.horizontalScale = ^.TextBox11.value;
                           ^.^.Form_use.verticalScale = ^.TextBox12.value;
                           ^.^.Form_use.fontScale = ^.TextBox13.value;
                   }
                   catch(e) {
                           MessageBox("Message=" + str(e.Message) + "\r\nCategory=" + str(e.Category) + "\r\nCode="+ str(e.Code)  + "\r\nSubCode=" + str(e.subCode));
                   }
           }
   }

   Button Button1 {
           x = 18;
           y = 118;
           width = 80;
           height = 25;
           Title = "Button1";
   }
   Button Button2 {
           x = 20;
           y = 153;
           width = 80;
           height = 25;
           Title = "Button2";
   }

   TextBox TextBox1[2] {
           x = 136;
           y = 119;
           width = 100;
           height = 25;
           layoutSpacing = 10;
           TextBox1[0].Value = "TextBox1";
           TextBox1[1].Value = "TextBox2";
   }

   ListBox ListBox1 {
           x = 263;
           y = 118;
           width = 101;
           height = 56;
           ListItem ListItem1[3] {
                   ListItem1[0].Title = "ListBox1";
                   ListItem1[1].Title = "ListBox2";
                   ListItem1[2].Title = "ListBox3";
           }
   }

   ComboBox ComboBox1 {
           x = 18;
           y = 238;
           width = 110;
           height = 20;
           ComboItem ComboItem1[3];
           ComboItem1[0] = "ComboBox1";
           ComboItem1[1] = "ComboBox2";
           ComboItem1[2] = "ComboBox3";
   }

   OptionButton OptionButton1 {
           x = 148;
           y = 196;
           width = 201;
           height = 76;
           OptionItem OptionItem1[2] {
                   Layout = LAYOUT_VERTICAL;
                   width = 190;
                   height = 25;
                   x = 1;
                   y = 2;
                   this[0].Title = "OptionButton1";
                   this[1].Title = "OptionButton2";

           }
   }
   OptionButton OptionButton2 {
           x = 13;
           y = 305;
           width = 360;
           height = 40;
           OptionItem OptionItem2[2] {
                   Layout = LAYOUT_HORIZONTAL;
                   width = 160;
                   height = 30;
                   this[0].Title = "OptionButton1";
                   this[1].Title = "OptionButton2";
           }
   }
}