從陣容框中刪除文本框和按鈕我正在嘗試刪除按鈕本身和之前的相關文本框。因此,當我按下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
);