라인업 상자에서 텍스트 상자 및 단추 삭제버튼 자체와 관련 텍스트 상자를 삭제하려고합니다. 그래서 버튼 3 번을 눌렀을 때 텍스트 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
);