Autor Beitrag
Dragon777
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 08:46 
Ich hoffe ich schreibe diese frage ins richtige forum.
Weiß zufällig jemand wie ich es hinbekomme das Delphi3 Prof.
den befehl

doublebuffered := true;

erkennt.
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 25.08.05 08:58 
Das DoubleBuffered in deinem Code kannst du streichen, da es nichts bringt.
Dragon777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 09:08 
Es funktioniert ja offensichtlich eh net in D3 Prof.

?hab gedacht dadurch würden die bilder weniger flimmern.oder ihre mich da?
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 25.08.05 09:11 
Ja, aber dann müsstest du das ganz etwas anders implementieren. So wie's jetzt programmiert ist, bringt's nichts.
Wenn Delphi3 kein DoubleBuffered hat, kannst du dir immer noch selbst programmieren, indem du das Bild zuerst in einem separaten TBitmap vorbereitest.
Dragon777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 09:14 
Wie meinst du das?
Gibts vielleicht irgendwo en tutorial dazu?
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 25.08.05 09:22 
Oder versuchs mit ControlStyle := ControlStyle + [csOpaque]; und nimm statt TPaintBox ein TImage.
Dragon777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 09:25 
Den befehl kenn ich noch gar nicht,wo muß denn der hin.

Bringt des was wenn ich die painbox in ein TImage umwandel?
des kann ich machen.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 25.08.05 09:35 
Hallo,
user profile iconDragon777 hat folgendes geschrieben:
...
Gibts vielleicht irgendwo en tutorial dazu?

kein Tutorial aber Code, kurz und gut kommentiert:

:arrow: [url=www.luckie-online.de...nBitmap.html]Luckie: OffScreenBitmap nutzen
[/url]

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Dragon777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 09:39 
Danke Lannes seh ich mir gleich mal an. :)
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 25.08.05 09:42 
TPaintbox durch TImage ersetzen und ControlStyle := ControlStyle + [csOpaque] in die Routine FormCreate. Ist aus meiner Sicht die einfachste Möglichkeit.

TImage hat einen internen Buffer. Damit sollte's eigentlich gehn.
Dragon777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 10:21 
Oki danke Delphifan werd ich gleich mal machen. :)


Edit1: Hey das hat funktioniert-es flimmert jetzt fast gar nicht mehr.

Danke.

Edit2: Was bewirkt eigentlich dieser befehl

ControlStyle := ControlStyle + [csOpaque]; ?
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 25.08.05 12:57 
user profile iconDragon777 hat folgendes geschrieben:
Oki danke Delphifan werd ich gleich mal machen. :)


Edit1: Hey das hat funktioniert-es flimmert jetzt fast gar nicht mehr.

Danke.

Edit2: Was bewirkt eigentlich dieser befehl

ControlStyle := ControlStyle + [csOpaque]; ?

Fast gar nicht mehr? Es flimmert also doch noch?

csOpaque bedeutet, dass ein Control sein ganzes Rechteck, welches ihm zur Verfügung steht, ausfüllt, d.h. nirgends transparent ist. Bei einem Repaint wird der Hintergrund dann ums Control rumgezeichnet und der entsprechende Bereich nicht verändert.
Dragon777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41

XP Prof
D3 Prof
BeitragVerfasst: Do 25.08.05 13:16 
minimal gibts bildfehler