FlexView FlexView1 {
…
FlexRecord FlexRecord1{
FlexLabel FlexLabel1{
Title = "名前";
…
}
FlexLabel FlexLabel2{
Title = "メールアドレス";
…
}
FlexLabel FlexLabel3{
Title = "住所";
…
}
FlexButton FlexButton1{
Value = "選択";
…
Function OnPushed( e ) {
var row = Form3.FlexView1.GetRow(e.row);
^.^.^.Label1 = row.Flexlabel1.Value;;
^.^.^.Label2 = row.Flexlabel2.Value;
^.^.^.Label3 = row.Flexlabel3.Value;
}
}
}
}
Label Label1 {
…
}
Label Label2 {
…
}
Label Label3 {
…
}
Button Button1 {
…
Title = "メールを作成する";
Function onTouch(e){
try {
/*インテントを作成します*/
var i = new Intent("android.intent.action.SENDTO",
"mailto:" + ^.Label2);
/*インテントへExtra情報を格納します*/
i.putExtra(Intent.TYPE_STRING, "android.intent.extra.SUBJECT",
^.Label1 + "様へ【sample】");
i.putExtra(Intent.TYPE_STRING, "android.intent.extra.TEXT",
^.Label1 + "様\nサンプルメールです。\nサンプルメールです。");
/*アプリケーション選択画面を表示します*/
i.createChooser("メーラーを選択してください").startActivity();
} catch(e) {
//.MessageBox(e.message);
}
}
}
Button Button2 {
…
Title = "地図で見る";
Function onTouch(e){
try {
var i2 = new Intent("android.intent.action.VIEW",
"geo:0,0?q=" + ^.Label3);
i2.createChooser("アプリケーションを選択してください")
.startActivity();
} catch(e) {
//.MessageBox(e.message);
}
}
} |