API version 1
- ‐
InterContextMessage¶
Application.postInterContextMessageにより送信されたメッセージを受信した場合に発生します。
Eventオブジェクトには下記のプロパティが付加されています。
型 |
名前 |
説明 |
---|---|---|
CRS::Common::Core::Map |
param |
Application.postInterContextMessage により送信されたパラメータ |
関連項目
Application.postInterContextMessage メソッド
使用例
CRSダウンロード
Form Root_InterContextMessage {
x = 0;
y = 0;
width = 800;
height = 600;
Label label1 {
x = 24;
y = 16;
width = 376;
height = 48;
value = "メッセージを受けたらこのタブがアクティブになります。";
font = new Font("MS UI Gothic", 14);
}
if (!Application.DESIGNTIME) {
# ここに初期化処理を記述してください。
# このコンテキストのサービスIDとポートIDを設定
Application.setCurrentContextInfo("AppMessage", "id001");
}
}
# postInterContextMessageで送信されたメッセージを受信します
function onInterContextMessage(e) {
if (e.param["command"] == "activate") {
setWindowState(STATE_FRONT);
}
}