在同一行中动态添加按钮你好,
基本上,我有一个数据表,可以用它创建一个报表,然后尝试在同一行中向其中动态添加按钮,但是这些按钮位于表下方
这就是我得到的

我想要的是表格末尾“数字2”之后的“按钮#1”
myPlatform = New Window( "name",
H List Box(
V List Box( bb = Col Box( "buttons" ), );
V List Box( myDispObj = dtSum << getAsReport );
)
);
rowList = myDispObj[Number Col Box( 1 )] << Get As Matrix;
rowList = As List( rowList );
bblist = {};
For( i = 1, i <= N Items( rowList ), i++,
bb_expr = Eval Insert( "\[bblist[i] = buttonbox("Button #" || char(i), doSomething(^i^))]\" );
Eval( Parse( bb_expr ) );
myPlatform << append( bblist[i] );
);数据表脚本编写回复:在同一行动态添加按钮您需要将按钮附加到H列表框中,
和顺便说一句,H列表框的元素需要用冒号“,”分隔。
BR

回复:在同一行动态添加按钮此示例显示了另一种方法,可以为您提供更多控制。

改编自“显示框>彩色框”的“脚本索引”条目中给出的示例:
Names Default To Here( 1 );
New Window( "Button in Row",
exx = 1;
exy = 4;
exz = 8;
Table Box(
String Col Box( "strings", {"x", "y", "z"} ),
Number Col Box( "values", {exx, exy, exz} ),
Col Box(
"buttons",
Button Box( "Button 1" ),
Button Box( "Button 2" ),
Button Box( "Button 3" )
)
);
);