API version 1
- ‐
RW
integer
arrangement¶
タブの配置方法を指定します。
TAB_STD、TAB_FIXEDWIDTHを指定している場合でも、tabWidthプロパティが0の場合はTAB_RAGGEDRIGHTとして表示します。
初期値はTAB_STDです。
関連項目
tabWidthプロパティ
定数一覧
------------------------------------------------------------
定数値 |
説明 |
---|---|
TAB_STD |
0:既定値 TAB_FIXEDWIDTHと同様の挙動となります。 |
TAB_FIXEDWIDTH |
1:幅固定 TabWidthプロパティに合わせます。 |
TAB_RAGGEDRIGHT |
3:幅合わせする タブ毎に、TabFormのTitleプロパティに設定された表示文字数に幅を合わせます。 |
使用例
CRSダウンロード
ダウンロード(imagetab.zip)
Form TabFrameF {
X = 0;
Y = 0;
Width = 600;
Height = 400;
/* このサンプルは、このcrsから直接実行します。
添付のimagetab.zip は実行するフォルダで解凍してください。
*/
Label Label22 {
x = 323;
y = 19;
width = 40;
height = 20;
}
TabFrame TabFrame11 {
X = 50;
Y = 50;
Width = 250;
Height = 200;
tabWidth = 70 ;
tabHeight = 30 ;
tabStyle = 0 ;
TabPosition = 0 ;
arrangement = 1 ;
tabMovable = true ;
TabForm TabForm11 {
title = "Tab1";
bgColor = Color.LGRAY;
var co = new Color() ;
co = 0xff00ff00 ;
tabbgColor = co ;
}
TabForm TabForm12 {
title = "Tab2";
bgColor = Color.CYAN;
tabFgColor = "RED" ;
}
TabForm TabForm13 {
title = "Tab3";
bgColor = Color.GREEN;
}
TabForm12.Selected = true;
^.Label22.value = count ;
}
ComboBox ComboBox11 {
x = 331;
y = 118;
width = 100;
height = 20;
ComboItem ComboItem11[3] {
ComboItem11[0].title = "Tab1 Select";
ComboItem11[1].title = "Tab2 Select";
ComboItem11[2].title = "Tab3 Select";
}
ComboBox11 = "Tab1 Select";
}
Label Label12 {
x = 323;
y = 159;
width = 40;
height = 20;
value = "Title";
}
TextBox TextBox11 {
x = 358;
y = 152;
width = 100;
height = 20;
value = "Tab11";
}
Label Label13 {
x = 319;
y = 187;
width = 40;
height = 20;
value = "icon";
}
ComboBox ComboBox12 {
x = 360;
y = 185;
width = 100;
height = 20;
ComboItem ComboItem12[3] {
ComboItem12[0].title = "猫";
ComboItem12[1].title = "オブスト";
ComboItem12[2].title = "ウサギ";
}
ComboBox12 = "猫";
}
Button Button11 {
x = 472;
y = 184;
width = 50;
height = 20;
title = "SET";
Function OnTouch(e) {
Reference gForm;
if(^.ComboBox11 == "Tab1 Select") { gForm.value = ^.TabFrame11.getForm(0); }
else if(^.ComboBox11 == "Tab2 Select") { gForm.value = ^.TabFrame11.getForm(1); }
else if(^.ComboBox11 == "Tab3 Select") { gForm.value = ^.TabFrame11.getForm(2); }
gForm.value.title = ^.TextBox11.value;
if(^.ComboBox12 == "猫") { gForm.value.icon = "imagetab/neko1.jpg"; }
else if(^.ComboBox12 == "オブスト") { gForm.value.icon = "imagetab/OPSTlogo.png"; }
else if(^.ComboBox12 == "ウサギ") { gForm.value.icon = "imagetab/usagi-ss.png"; }
}
}
}
Function onException(e) {
MessageBox("Message=" + str(e.Message) + "\r\nCategory=" + str(e.Category) + "\r\nCode="+ str(e.Code) + "\r\nSubCode=" + str(e.subCode));
}