Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 07.08.03 21:11 
Hi,

wenn ich bei einer meiner Komponenten (z.B. von TPanel abgeleitet) die WM_PAINT Message überschreibe, bekomme ich immer ne Prozessorauslastung von 100%... weiß jemand woran das liegt???

(Passiert auch wenn ich NICHTS in der Proceduer ausführe!)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
type
  TMyComponent = class(TPanel)
  private
    { Private-Deklarationen }
  protected
    { Protected-Deklarationen }
    procedure WMPaint(var Message: TWMPaint); message WM_PAINT;
[...]

procedure TMyComponent.WMPaint(var Message: TWMPaint);
begin
  //Hier zeichne ich meinen Kram
end;


Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Do 07.08.03 22:28 
Das Problem habe ich auch. Nur das ich in der Zeichenroutine mit Windows-Regionen arbeite. Wenn ich die Komponente auf meine Form ziehe, dauert es noch etwa 5 Sekunden bis sich Delphi mit der Fehlermeldung "Unbekannter Softwarefehler ..." verabschiedet.

Ich weiss beim besten Willen nicht, woran das liegt. :nixweiss:
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 07.08.03 22:29 
Kann ich nicht nachvollziehen.. hatte noch nie derartige Probleme! Schonmal versucht die WndProc zu überschreiben und dort auf die Message zu reagieren?

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 07.08.03 22:31 
Hi,

hatte bei mir das BeginPaint / EndPaint vergessen aufzurufen, daran lag's :)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Do 07.08.03 23:13 
Ich hatte es übrigens auch vergessen. Nun gehts.
Danke :)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 08.08.03 00:09 
Und wer hat es mal wieder gewußt? na wer war es wohl? Na? Na?




Genau der gute Luckie mal wieder. :P
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Fr 08.08.03 01:35 
Er ist es!

:wink: