Form Form1 {
X = 0;
Y = 0;
Width = 254;
Height = 300;
TextBox TextBox1 {
X = 21;
Y = 19;
Width = 197;
Height = 54;
Value = "TextBox1";
TabIndex = 1;
}
TextBox TextBox2 {
X = 22;
Y = 87;
Width = 197;
Height = 54;
Value = "TextBox2";
TabIndex = 2;
}
TextBox TextBox3 {
X = 23;
Y = 155;
Width = 197;
Height = 54;
Value = "TextBox3";
TabIndex = 3;
}
TextBox TextBox4 {
X = 23;
Y = 219;
Width = 197;
Height = 54;
Value = "TextBox4";
TabIndex = 4;
}
Function OnKeyDown( e ) {
/* フォーカスがあたっているオブジェクトを取得 */
var obj = //.GetFocus();
if( e.Key == "DOWN" ) {
/* 次のオブジェクトへフォーカス移動 */
obj.MoveFocus($NEXTFOCUS);
}else if (e.Key == "UP"){
/* 前のオブジェクトへフォーカス移動 */
obj.MoveFocus($PREVFOCUS);
}
}
}
|