从阵容框中删除文本框和按钮我正在尝试删除按钮本身和之前的相关文本框。因此,当我按下nr 3按钮时,我想要删除文本nr 3。有任何想法吗?
nr=5;
new window("Button test",
Lineuplist=Lineup Box( N Col( 2 ),
)
);
For(i=1,i<=nr,i++,
Lineuplist << append(textbox("Text nr "||char(i)));
Lineuplist << append(
buttonbox("Button nr "||char(i),
<< Set Function(
Function({this},
this << delete;
)
)
);
);
);回复:从阵容框中删除文本框和按钮谢谢!
回复:从阵容框中删除文本框和按钮这是一段有用的代码:
nr=5;
new window("Button test",
Lineuplist=Lineup Box( N Col( 2 ),
)
);
For(i=1,i<=nr,i++,
Lineuplist << append(textbox("Text nr "||char(i)));
Lineuplist << append(
buttonbox("Button nr "||char(i),
<< Set Function(
Function({this},
ps=this<<SIB></SIB>回复:从阵容框中删除文本框和按钮@pauldeen
nr=5;
new window("Button test",
Lineuplist=Lineup Box( N Col( 2 ))
);
);
For(i=1,i<=nr,i++,
Lineuplist << append(textbox("Text nr "||char(i)));
Lineuplist << append(
buttonbox("Button nr "||char(i),
<< Set Function(
Function({this},
this << delete;
)
)
);
);
Lineuplist[Text Box(i)] << delete ; // this is the piece of code which will do what you are after . Insert it where you delete the button
);