Autor Beitrag
Evil-Zwergie
Hält's aus hier
Beiträge: 15

win xp
Delphi
BeitragVerfasst: Do 06.11.08 10:25 
Ich weiß es gibt schon nen threat aber ich hab Delphi 5.0 gibts da ne möglichkeit??
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TSpielfeld.Shape1ContextPopup(Sender: TObject; MousePos: TPoint;
  var Handled: Boolean);
begin
shape1.DoubleBuffered:= True;
end;

funzt net.

Moderiert von user profile iconGausi: Quote- durch Delphi-Tags ersetzt
delphi10
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 447
Erhaltene Danke: 2

W2K, XP, Vista64, Win7 64
RAD-Studio 2010
BeitragVerfasst: Do 06.11.08 10:53 
Setz mal zusätzlich ein:
ausblenden Delphi-Quelltext
1:
Spielfeld.shape1.parent.ControlStyle:=shape1.parent.ControlStyle+[csOpaque];					

Sollte das Flickern neutralisieren.

EDIT: Ist auch eigentlich für animierte GIF's gedacht, da wird das Flickern deutlich reduziert

_________________
Salus populi suprema lex esto


Zuletzt bearbeitet von delphi10 am Do 06.11.08 18:40, insgesamt 1-mal bearbeitet
Evil-Zwergie Threadstarter
Hält's aus hier
Beiträge: 15

win xp
Delphi
BeitragVerfasst: Do 06.11.08 12:03 
funzt net
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 06.11.08 12:05 
Muss man nicht bei der Form (oder halt dem Parent des Shapes) DoubleBuffered auf True setzen?

_________________
We are, we were and will not be.
Evil-Zwergie Threadstarter
Hält's aus hier
Beiträge: 15

win xp
Delphi
BeitragVerfasst: Do 06.11.08 12:48 
es gibt nur n: ParentShowHint und wenn ich den auf true setze ändert sich nix
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Do 06.11.08 13:27 
Du sollst Form1.DoubleBuffered auf True setzen.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Evil-Zwergie Threadstarter
Hält's aus hier
Beiträge: 15

win xp
Delphi
BeitragVerfasst: Do 06.11.08 17:16 
die form heißt bei mir shape1 und hab ich schon versucht funzt net


Dabke für die Hilfe
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 06.11.08 17:43 
Shape1 klingt eher nach ner Komponente vom Typ TShape..

Und kannst du mal BITTE etwas präziser werden, statt immer nur "funzt ned"?!
WO hast du das DoubleBuffered eingefügt? Vielleicht war es einfach nur an der falschen Stelle. In dem Beispiel aus deinem ersten Post wäre es eine ungünstige Stelle.. Besser: Direkt im OnCreate.
WAS funzt ned? Fehler beim compilieren? Rechner explodiert? Oder einfach nur keine Verbesserung?

_________________
PROGRAMMER: A device for converting coffee into software.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 06.11.08 17:44 
Sicher, dass die Form Shape1 heißt und nicht Spielfeld? :gruebel:

_________________
We are, we were and will not be.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Do 06.11.08 18:29 
Hi,

Es sollte sich um eine Methode des Formulars handeln. Insofern einfach "self.Doublebuffered := true;".

Auf die Gefahr hin, dass ich jetzt alle Klarheiten beseitigt habe :tongue:

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Do 06.11.08 20:38 
user profile iconHidden hat folgendes geschrieben Zum zitierten Posting springen:

Es sollte sich um eine Methode des Formulars handeln. Insofern einfach "self.Doublebuffered := true;".

Auf die Gefahr hin, dass ich jetzt alle Klarheiten beseitigt habe :tongue:

Eine muss ich auch noch beseitigen: Eigenschaft, nicht Methode :P
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 06.11.08 20:41 
Nene, Shape1ContextPopup ist eine Methode der Form, in der die Eigenschaft Doublebuffered der Form mit self.Doublebuffered := true; gesetzt werden kann. Wobei man das self natürlich auch weglassen kann.

_________________
We are, we were and will not be.
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Do 06.11.08 20:43 
Ah, Missverständnis :). Sorry.
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Do 06.11.08 20:45 
user profile iconEvil-Zwergie hat folgendes geschrieben Zum zitierten Posting springen:
die form heißt bei mir shape1 und hab ich schon versucht funzt net


Dabke für die Hilfe


Ich glaub mir form meint er die deutsche Form (Kreis,Quadrat usw) ^^