Autor Beitrag
McFarlane
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

WIN XP Prof.
Delphi 2005 PE, Turbo Delphi 2006, PHP (Eclipse)
BeitragVerfasst: Di 20.02.07 13:09 
Hallo,
ich hab folgendes Problem:

Ich habe die TShapes inactive1 bis inactive 20. Jetzt will ich alle Shapes auf eine Farbe setzten und hab mitr gedacht, dass es vielleicht eine bessere Lösung gibt, als:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
inactive1.brush.color := Cinactive;
inactive2.brush.color := Cinactive;
[...]
inactive20.brush.color := Cinactive;


Kann ich das irgendwie in einer Schleife verpacken (hab so an inactive[i] oder so gedacht) ?

Danke, McFarlane

PS: Da ich nicht weiß wie man sowas nennt, konnte ich leider nicht danach suchen...

_________________
21 ist nur die halbe Wahrheit...
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 20.02.07 13:09 
.FindComponent()

_________________
Markus Kinzler.
McFarlane Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

WIN XP Prof.
Delphi 2005 PE, Turbo Delphi 2006, PHP (Eclipse)
BeitragVerfasst: Di 20.02.07 13:23 
Thx, klappt :D

_________________
21 ist nur die halbe Wahrheit...