Autor Beitrag
SmileySN
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 297

WinXP, Win7
Delphi 2010 Professional
BeitragVerfasst: Di 20.06.06 17:50 
Die Idee ist im Prinzip nicht schlecht, aber es ist wohl nicht üblich, dass man seine ganzen Componenten auf den Formularen auf den Standard Namen stehen lässt.
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 21.06.06 16:01 
Hab grad kein Delphi drauf. Darum ungetestet.
ausblenden Delphi-Quelltext
1:
2:
for i := 0 to ComponentCount - 1 do
  if (Components[i] is TEdit) then (Components[i] as TEdit).Color := clInfoBk;

Macht alle Edits clInfoBk.
SmileySN
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 297

WinXP, Win7
Delphi 2010 Professional
BeitragVerfasst: Mi 21.06.06 17:27 
Volltreffer Coder
genau das ist es was ich suche und es funktioniert prima.