Autor Beitrag
Daniel_100
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63

Win XP
D3 Prof, D6 Enterprise
BeitragVerfasst: So 04.07.04 15:02 
Wenn ich folgendermaßen ein Bild erstelle, hat dann jedes Newimage einen Index oder sowas...?:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
newimage := TImage.Create (Self);
newimage.Parent := Self;
newimage.Picture.LoadFromFile('Image.bmp');
newimage.Left := strtoint(edit1.text);
newimage.Top := strtoint(edit2.text);


Ich wollte nämlich einzelne Bilder, die so erstellt worden sind, wieder löschen.

Danke

Daniel
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: So 04.07.04 16:18 
Nein. Jedes TImage hat nur ein Bild.

_________________
Gruß
Martin
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: So 04.07.04 17:22 
Oder willst du nur die Komponente ansprechen? Ja? Dann gib ihr doch einen Namen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
newimage := TImage.Create (Self);  
newimage.Parent := Self;  
newimage.Name:= 'Image_' + IntToStr(1);  
...

_________________
Gruß
Martin