Registriert seit: 10. Jun 2002
Ort: Unterhaching
11.412 Beiträge
Delphi 12 Athens
|
27. Feb 2003, 16:20
Stimmt, so geht es nicht
Delphi-Quellcode:
procedure TForm1.Image1Click(Sender: TObject);
var BitmapO: TBitmap;
begin
if bild <> 1 then
begin
BitmapO := TBitmap.create;
BitmapO.LoadFromFile('schloss offen.bmp');
Image1.Picture.LoadfromFile('schloss offen.bmp');
bild := 1;
end
else
begin
BitmapO := TBitmap.create;
BitmapO.LoadFromFile('schloss zu.bmp');
Image1.Picture.LoadfromFile('schloss zu.bmp');
bild := 0;
end;
end;
Nutze einfach Deine Bild Variable dafür
...  ...
Daniel Lizbeth Ich bin nicht zurück, ich tue nur so
|