我有一个 H 列表框窗口,用户可以输入参数,之后我将进行一些计算并向用户提供图形生成器
我的问题是我是否也可以根据参数设置图形生成器标题,下面是示例代码
Names Default To Here( 1 );
dt = current data table();
nw = New Window( "simulator",
H List Box( Text Box( " Input sample rate " ), sample rate = Number Edit Box() ),
H List Box( Text Box( " Input threshold " ), threshold = Number Edit Box() ),
Button Box( "OK",
thesamplerate = sample rate << get;
thethreshold = threshold << get;
numthreshold = num(thethreshold);
numtime = num(thetime);
//Here are more code I already finished based on above variable
Graph Builder(
Variables( X( :File Name ), Y( :greater ) ),
Elements( Bar( X, Y, Legend( 4 ) ) ),
SendToReport(
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "Sample rate = Threshold = " )} //I want to have sample rate & threshold shown on title
)
)
)
))