API version 1
- ‐
delete¶
コンテキストを終了します。 コンテキストに所属するすべてのオブジェクトが削除され、タブは閉じられます。他のコンテキスト(タブ)は影響を受けません。
呼出形式一覧
呼出形式 |
説明 |
---|---|
void delete() |
コンテキストを終了します。 |
戻り値一覧
戻り値 |
説明 |
---|---|
void |
なし |
例外
なし
使用例
CRSダウンロード
ダウンロード(Root_base.crs)
Form Root_deci {
x = 0;
y = 0;
width = 580;
height = 380;
/* Root_base.crsから起動をかけることもできます */
Label Label00 {
x = 15;
y = 26;
width = 384;
height = 16;
value = "*フォーカスを移動すると値は確定します";
fgColor = Color.Blue;
}
Label Label11 {
x = 166;
y = 123;
width = 104;
height = 16;
value = "//DecideValue前";
}
Label Label12 {
x = 166;
y = 153;
width = 104;
height = 16;
value = "//DecideValue後";
}
Label Label31 {
x = 165;
y = 190;
width = 104;
height = 16;
value = "//DecideValue前";
}
Label Label32 {
x = 165;
y = 215;
width = 104;
height = 16;
value = "//DecideValue後";
}
TextBox TextBox1 {
x = 20;
y = 125;
width = 137;
height = 37;
value = "TextBox";
Function onGetFocus( e ) {
bgcolor = new Color(204,255,204,255);
}
Function onLostFocus( e ) {
bgcolor = Color.STD;
}
}
DateEdit DateEdit1 {
x = 20;
y = 190;
width = 137;
height = 34;
value = new Date;
Function onGetFocus( e ) {
bgColor = new Color(204,255,204,255);
}
Function onLostFocus( e ) {
bgColor = Color.STD;
}
}
TextBox txtText1 {
x = 270;
y = 120;
width = 144;
height = 20;
value = "";
}
TextBox txtText2 {
x = 270;
y = 150;
width = 144;
height = 20;
value = "";
}
TextBox txtDate1 {
x = 270;
y = 185;
width = 144;
height = 20;
value = "";
}
TextBox txtDate2 {
x = 270;
y = 215;
width = 144;
height = 20;
value = "";
}
Label lblDecideValue {
x = 20;
y = 50;
width = 196;
height = 53;
value = "//.DecideValue \r\n ここをクリックすると3秒後に確定します";
bgcolor = new Color(255,204,255,255);
Function OnClicked( e ) {
^.txtText1 = ^.TextBox1;
^.txtDate1 = ^.DateEdit1;
settimer(3,true);
}
Function onTimer( e ) {
//.decidevalue();
^.txtText2 = ^.TextBox1;
^.txtDate2 = ^.DateEdit1;
^.lblFocused = //.getFocus().name;
}
}
Button btnReset {
x = 260;
y = 50;
width = 82;
height = 33;
title = "Reset";
Function onTouch( e ) {
^.TextBox1.value = "TextBox";
^.DateEdit1.value = new Date;
^.txtText1.clear();
^.txtText2.clear();
^.txtDate1.clear();
^.txtDate2.clear();
}
}
Button btnBack {
x = 427;
y = 52;
width = 80;
height = 28;
title = "戻る";
Function onTouch( e ) {
^.^.width = 0;
^.^.height = 0;
Root_deci.delete();
}
}
Label label41 {
x = 20;
y = 250;
width = 200;
height = 20;
value = "フォーカスのあるオブジェクト";
}
Label lblFocused {
x = 20;
y = 272;
width = 200;
height = 20;
bgColor = Color.WHITE;
}
}