Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi AppEvnts für Delphi 4 (https://www.delphipraxis.net/40227-appevnts-fuer-delphi-4-a.html)

Uncle Cracker 12. Feb 2005 17:25


AppEvnts für Delphi 4
 
Hi,


ich habe mal eine Frage: Gibt es die Unit "AppEvnts" auch für Delphi 4 bzw. kann man statt "ApplicationEvents1Idle" etwas vergleichbares für Delphi 4 nutzten?

Ich habe nämlich einen Quelltext von einem Programm, was jedoch ohne "ApplicationEvents1Idle" nicht funktioniert... :(


Wäre sehr dankbar wenn jemand eine Lösung hätte.



:love: Danke UC

toms 12. Feb 2005 18:12

Re: AppEvnts für Delphi 4
 
Delphi-Quellcode:
{ Private declarations }
procedure IdleEventHandler(Sender: TObject; var Done: Boolean);
// In der implementation Sektion:

Delphi-Quellcode:
procedure TForm1.IdleEventHandler(Sender: TObject;
  var Done: Boolean);
begin
// ...
end;
// In der Forms OnCreate Methode

Delphi-Quellcode:
Application.OnIdle := IdleEventHandler;

Uncle Cracker 12. Feb 2005 23:34

Re: AppEvnts für Delphi 4
 
Ja danke hat mir geholfen.

Aber noch eine andere Frage dazu, kann auch sein, dass das gar nichts damit zu tun hat:

Ich habe ein OpenGL-Spiel kompiliert, dass eigentlich mit Delphi6 geschrieben wurde, habe es jetzt mit der Änderung von AppEvnts unter Delphi4 kompilert, aber jetzt habe ich anstatt 30 FPS nur noch 20 FPS. Liegt an AppEvnts oder daran das ich es unter Delphi4 kompilert habe?

Das ist aber irgendwie komisch oder läuft Delphi4 ansich langsamer als die Delphi-Versionen > Delphi4?

Hätte jemand einen Tip wie ich das wieder ändern könnte oder geht das nicht wirklich?



:love: Danke UC

Ultimator 12. Feb 2005 23:41

Re: AppEvnts für Delphi 4
 
Ob es an dem AppEvnts leigt, kannst du feststellen, indem du alles, was damit zu tun hast mal in {} setzt, und dann schaust, ob es wieder mit 30 FPS läuft ;-)

[edit] Verdammt, das ist ja nötig im Code :wall: [/edit]

Allerdings glaube ich nicht, dass es so extrem an Compiler liegt :-?


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:13 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz