AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

AppEvnts für Delphi 4

Ein Thema von Uncle Cracker · begonnen am 12. Feb 2005 · letzter Beitrag vom 12. Feb 2005
Antwort Antwort
Benutzerbild von Uncle Cracker
Uncle Cracker

Registriert seit: 30. Mär 2003
Ort: Freital
694 Beiträge
 
#1

AppEvnts für Delphi 4

  Alt 12. Feb 2005, 17:25
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.



Danke UC
I wish it was legal to marry software because I'm madly in love with Delphi...
  Mit Zitat antworten Zitat
Benutzerbild von toms
toms
(CodeLib-Manager)

Registriert seit: 10. Jun 2002
4.648 Beiträge
 
Delphi XE Professional
 
#2

Re: AppEvnts für Delphi 4

  Alt 12. Feb 2005, 18:12
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

Application.OnIdle := IdleEventHandler;
Thomas
  Mit Zitat antworten Zitat
Benutzerbild von Uncle Cracker
Uncle Cracker

Registriert seit: 30. Mär 2003
Ort: Freital
694 Beiträge
 
#3

Re: AppEvnts für Delphi 4

  Alt 12. Feb 2005, 23:34
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?



Danke UC
I wish it was legal to marry software because I'm madly in love with Delphi...
  Mit Zitat antworten Zitat
Benutzerbild von Ultimator
Ultimator

Registriert seit: 17. Feb 2004
Ort: Coburg
1.860 Beiträge
 
FreePascal / Lazarus
 
#4

Re: AppEvnts für Delphi 4

  Alt 12. Feb 2005, 23:41
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 [/edit]

Allerdings glaube ich nicht, dass es so extrem an Compiler liegt
Julian J. Pracht
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:56 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