Löschen Sie ein Textfeld und eine Schaltfläche aus einem AufstellungsfeldIch versuche, sowohl die Schaltfläche selbst als auch das zugehörige Textfeld davor zu löschen. Wenn ich also auf die Schaltfläche Nr. 3 klicke, möchte ich, dass Text Nr. 3 auch gelöscht wird. Irgendwelche Ideen?
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;
)
)
);
);
);Betreff: Löschen Sie ein Textfeld und eine Schaltfläche aus einem AufstellungsfeldVielen Dank!
Betreff: Löschen Sie ein Textfeld und eine Schaltfläche aus einem AufstellungsfeldHier ist ein Stück Code, der funktioniert:
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>Betreff: Löschen Sie ein Textfeld und eine Schaltfläche aus einem Aufstellungsfeld@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
);