FlexView FlexView1 {
X = 9;
Y = 8;
Width = 424;
Height = 188;
FlexRecord FlexRecord1 {
FlexTextBox FlexTextBox1{Title = "FlexTextBox";}
FlexButton FlexButton1{Title = "FlexButton";}
FlexCheckButton FlexCheckButton1{Title = "FlexCheckButton";}
FlexListBox FlexListBox1{Title = "FlexListBox";}
}
InsertRow(10);
}
Button Button1 {
X = 263;
Y = 219;
Width = 156;
Height = 55;
Title = "操作不可にする";
Function OnTouch( e ) {
/* 子オブジェクトの取得 */
var fobj = ^.FlexView1.FlexRecord1.GetChildObjects();
for (var i in fobj){
if( fobj[i].classname == "FlexTextBox" ) {
/* Editableプロパティを設定 */
fobj[i].Editable = $FALSE;
}
if( fobj[i].classname == "FlexButton" ||
fobj[i].classname == "FlexCheckButton" ||
fobj[i].classname == "FlexListBox") {
/* Activeプロパティを設定 */
fobj[i].Active = $FALSE;
}
}
}
}
|