API version 1

- ‐

RW

integer

titlePlacement

タイトルと枠線の配置を指定します。


タイトルを枠線の外側に表示するか、枠線に重ねて表示するかを指定します。

GROUPBOX_STDに設定した場合は、配置はborderプロパティの設定内容に基づいて決まります。

borderプロパティ設定値

表示形式

BORDER_SUNKEN

枠の外側

BORDER_RISED

枠の外側

BORDER_ETCHED

枠に重ねる

BORDER_BUMP

枠に重ねる

BORDER_GRAYFRAME

枠に重ねる

BORDER_SOFT

枠に重ねる

BORDER_SOFTETCHED

枠に重ねる

BORDER_SOFTBUMP

枠の外側

BORDER_PLANE

枠に重ねる

BORDER_DASH

枠に重ねる

BORDER_DOT

枠に重ねる

BORDER_FLATSUNKEN

枠の外側

BORDER_FLATRISED

枠の外側

上記以外

枠の外側

初期値はGROUPBOX_STDです。

関連項目

borderプロパティ

定数一覧

------------------------------------------------------------

定数値

説明

GROUPBOX_STD

0:borderプロパティの指定内容に基づいて自動判定します。

GROUPBOX_OUTSIDE

1:枠の外側にタイトルを表示します。

GROUPBOX_ONBORDER

2:枠に重ねてタイトルを表示します。



使用例 CRSダウンロード

Form GroupBox {
   x = 0;
   y = 0;
   width = 681;
   height = 537;

   var bl = new Border( Border.SOLID, 2, "red", 5);

   GroupBox GroupBox1 {
           x = 20;
           y = 43;
           width = 280;
           height = 164;
           bgColor = Color.WHITE;
           title = "<GroupBox tabIndex=2>";
           tabIndex = 2;
           titleAlign = GROUPBOX_RIGHT ;
           boxStyle = GROUPBOX_ROUND ;

           Button Button11 {
                   x = 10;
                   y = 10;
                   width = 120;
                   height = 25;
                   title = "Button";
                   highlightOnFocus = bl;
                   /* Enterキーで送り、S+Enterで戻り */
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           TextBox textBox11 {
                   x = 10;
                   y = 46;
                   width = 120;
                   height = 25;
                   value = "TextBox";
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           EditBox EditBox11 {
                   x = 11;
                   y = 84;
                   width = 120;
                   height = 40;
                   value = "EditBox";
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           ListBox ListBox11 {
                   x = 140;
                   y = 10;
                   width = 120;
                   height = 35;
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   ListItem ListItem11[2] {
                           ListItem11[0].title = "ListBox1";
                           ListItem11[1].title = "ListBox2";
                   }
           }
           OptionButton OptionButton11 {
                   x = 140;
                   y = 55;
                   width = 120;
                   height = 35;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   OptionItem OptionItem11[2] {
                           width = 110;
                           height = 15;
                           highlightOnFocus = bl;
                           OptionItem11[0].title = "OptionButton1";
                           OptionItem11[1].title = "OptionButton2";
                   }
           }
           CheckBox CheckBox11 {
                   x = 140;
                   y = 102;
                   width = 120;
                   height = 35;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   CheckItem CheckItem11[2] {
                           width = 110;
                           height = 15;
                           highlightOnFocus = bl;
                           CheckItem11[0].title = "CheckBox1";
                           CheckItem11[1].title = "CheckBox2";
                   }
           }
   }

   GroupBox GroupBox2 {
           x = 188;
           y = 130;
           width = 280;
           height = 160;
           bgColor = Color.WHITE;
           title = "<GroupBox tabIndex=1>";
           tabIndex = 1;
           titlePosition =GROUPBOX_BOTTOM ;
           titlePlacement = GROUPBOX_ONBORDER ;
           /*titlePlacement = BORDER_ETCHED ; */

           Button Button11 {
                   x = 7;
                   y = 8;
                   width = 120;
                   height = 25;
                   title = "Button";
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           TextBox textBox11 {
                   x = 10;
                   y = 46;
                   width = 120;
                   height = 25;
                   value = "TextBox";
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           EditBox EditBox11 {
                   x = 10;
                   y = 83;
                   width = 120;
                   height = 40;
                   value = "EditBox";
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
           }
           ListBox ListBox11 {
                   x = 140;
                   y = 10;
                   width = 120;
                   height = 35;
                   highlightOnFocus = bl;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   ListItem ListItem11[2] {
                           ListItem11[0].title = "ListBox1";
                           ListItem11[1].title = "ListBox2";
                   }
           }
           OptionButton OptionButton11 {
                   x = 140;
                   y = 55;
                   width = 120;
                   height = 35;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   OptionItem OptionItem11[2] {
                           width = 110;
                           height = 15;
                           highlightOnFocus = bl;
                           OptionItem11[0].title = "OptionButton1";
                           OptionItem11[1].title = "OptionButton2";
                   }
           }
           CheckBox CheckBox11 {
                   x = 140;
                   y = 104;
                   width = 120;
                   height = 35;
                   nextTabKey = DisplayObject.KEY_ENTER;
                   prevTabKey = DisplayObject.KEY_S_ENTER;
                   CheckItem CheckItem11[2] {
                           width = 110;
                           height = 15;
                           highlightOnFocus = bl;
                           CheckItem11[0].title = "CheckBox1";
                           CheckItem11[1].title = "CheckBox2";
                   }
           }
   }
}