Autor Beitrag
Beutel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Di 20.12.05 20:33 
hab ungefähr 30 image auf eienr unit und will alle durch gehen die sind auch alle nummeriert aber ich hab keinen Plan wie ich es anstellen kann also so ungefähr
ausblenden Delphi-Quelltext
1:
2:
3:
fo ilauf := 1 to 10

(Image + InttoStr(Ilauf)).Tag


also so ungefähr hab ich aber gar keinen Plan wie ich das anstelle
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 20.12.05 20:34 
Hallo!

Such im Forum mal nach Suche in der Entwickler-Ecke FINDCOMPONENT.

Grüße
Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Limster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72


Delphi 5 & 7 Enterprise
BeitragVerfasst: Mi 21.12.05 13:29 
Titel: so
Hi!

Ich würds so machen :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
var
  i : Integer;
  lComponent : TComponent;
  lImage: TImage;
begin
  for i := 0 to (self.ComponentCount - 1) do begin
    lComponent := self.Components[lCount];
    if (lcomponent.inheritsfrom(TImage)) then begin
      lImage := TImage(lComponent);
      // so werden alle TImage der Form durchlaufen
      // sollen nur bestimmte Images durchlaufen werden,
      // überprüfst du hier eben noch lImage.Name ob dieser
      // richtig beginnt oder wie du willst... 
    end;
  end;
end;


mfg ,limbo

Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt