最も近いオブジェクトに対するButtonのアクションこんにちは、
いくつかの解析オブジェクトを作成し、それらのそれぞれの近くにボタンを配置するための最良の方法は何ですか?
ボタンは、関連オブジェクトに対して何らかのアクションを実行します。
変数への参照は使いたくありませんが、"this / parent"などのキーワードを使います。
例:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New window("Window",
VlistBox(
hlistbox(Distribution( Column( :weight ) ),Button Box("Remove Box Plot")),
hlistbox(Distribution( Column( :height ) ),Button Box("Remove Box Plot")),
)
);
ありがとうございました。
トム。
最も近いオブジェクトのボタンのアクションどうもありがとうございました。あなたの答えはとても役に立ちます。最も近いオブジェクトのボタンのアクションクールな質問とその答えはイエスです。 私は自分自身で答えに興味があったので何か新しいことを学びました。 これが私のやり方です。
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
bbFunc = Function({this},
dist_ob = ((this << parent) << child) << Get Scriptable Object();
dist_ob << Outlier Box Plot( 0 );
);
New Window( "Window",
V List Box(
H List Box( Distribution( Column( :weight ) ), Button Box( "Remove Box Plot" , << Set Function(bbFunc)) ),
H List Box( Distribution( Column( :height ) ), Button Box( "Remove Box Plot" , << Set Function(bbFunc)) )
)
);2番目の引数としてbbFuncを配置する代わりに<< Set Functionメッセージを使用することが重要でした。 それ以外の場合は動作しませんでした。 Set Functionの下のスクリプトインデックスに「this」を使用する例を見つけました。