Autor Beitrag
Fischman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: So 07.09.03 16:21 
Hallo Leute,
Ich lösche mein Image1 mit dem Code Image1.free das geht ja auch bestens.Aber wenn ich dann ein neues rein laden möchte geht das nicht mehr.Oder habe ich Image1 komplet damit entfernt.Wer kann mir da weiter helfen oder gibt es da noch andere wege die man da gehen kann.

Gruß Uwe
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: So 07.09.03 16:32 
Wen du image1.free verwendet hast, musst du, um ein neues Bild einzuladen

ausblenden Quelltext
1:
image1 := timage.create;					


eingeben.

Dann kannst du das Image1 Objekt wieder normal verwenden.

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
obbschtkuche
Gast
Erhaltene Danke: 1



BeitragVerfasst: So 07.09.03 18:25 
es muss so aussehen:

ausblenden Quelltext
1:
2:
image1 := Timage.Create(self);
image1.parent := self;


außerdem musst du dann noch die position einstellen, da die ebenfalls verlorengeht.

ausblenden Quelltext
1:
2:
Image1.Picture.free;
Image1.Picture := TPicture.Create;


so sollte es aber gehen, ohne dass du das bild neu erstellen musst.[/code]
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: So 07.09.03 20:18 
@obbschtkuche:

Wie schaut es aus, bist du noch bei dem 2D Adventure dabei?

Gruß Umpani

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Mo 08.09.03 23:26 
Besten Dank an alle hat alles funktioniert.

Gruß Uwe