Also gut:
Meinetwegen ich habe 12 Buttons, alle heißen MyBtn1, MyBtn2, ... , MyBtn12. Ich möchte bei allen die Breite einstellen (auf 30 px).
Ich nehm mir also ein For-Schleife und durchlaufe jeden Button, spreche ihn mit FindComponent an und ändere seine Breite auf 30 px:
Quelltext
1: 2:
| for i := 1 to 12 do TButton(FindComponent('MyBtn'+inttostr(i))).width := 30; |
mfg
GSE
_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)