[サンプルコード]
Form Form1 {
X = 0;
Y = 0;
Width = 400;
Height = 300;
ComboBox ComboBox1 {
X = 10;
Y = 10;
Width = 110;
Height = 160;
ComboItem ComboItem1[0];
Function OnTouch( e ) {
Form1.Label1 = e.From.value;
}
}
Label Label1 {
X = 10;
Y = 50;
Width = 110;
Height = 25;
}
if ( !$DESIGNTIME ) {
ComboBox1.ComboItem1 << CSV ( .value ){
A 項目1
B 項目2
C 項目3
D 項目4
E 項目5
};
}
}
|