Autor Beitrag
Daxten
Hält's aus hier
Beiträge: 8



BeitragVerfasst: Sa 28.05.05 18:08 
Hi.

Ich benutze Delphi 3 und kann Form1.DoubleBuffered := True; nicht benutzen.
Gibt es dafür einen walkaround oder etwas ähnliches?


Habe es mit diesem walkaround versucht blos
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
  Graphic := TGraphic.Create;
  Graphic.LoadFromFile('images/raumschiff.jpg');
  TempBild := TImage.Create(self);
  TempBild.Width := Self.ClientWidth;
  TempBild.Height := Self.ClientHeight; //Jetzt zeichnet man was man wollte:
  TempBild.Canvas.Brush.Color := clBlack;
  TempBild.Canvas.Rectangle(-1, -1, width,height); //Fenster löschen, indem ein Rechteck über das gesammte Fenster gezeichnet wird.
  TempBild.Canvas.TextOut(5, 5, 'Quelltext von Christian Kästner (christian@kaestnerpro.de)');
  TempBild.Canvas.Draw(100, 20, Graphic);
  BitBlt(Self.Canvas.handle, 0, 0, Self.Width, Self.Height, TempBild.Canvas.Handle, 0, 0, SrcCopy);
  TempBild.Free;


funktioniert unter delphi 3 anscheinend TempBild := TImage.Create(self); nicht


Gibt es noch andere Möglichkeiten oder was habe ich falsch gemacht?
Ziel ist das flackern beim bewegen von TImages wegzukriegen

fun
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 28.05.05 20:02 
Nutze mal anstatt der TImage-Komponente ein TBitmap. Dann müsste der Source IMHO funzen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.