Autor Beitrag
hallo
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 450

WIN XP, SuSE 9.3
D3 Prof, D6 Pers, 2005 Pers
BeitragVerfasst: Di 25.01.05 14:11 
Hi,

was muss ich denn als Parameter bei create übergeben?
Bei Form1 nil und so steigt er aus!

Danke
hallo

_________________
Der beste je Programmierte Trojaner: Windows XP
Wäre es nicht adequat, den Usus heterogener Termini zu minimieren?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 25.01.05 14:12 
Hallo Hallo,

Wo genau fuehrst du diesen Code aus, was fuer ein Objekt erzeugst du?
hallo Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 450

WIN XP, SuSE 9.3
D3 Prof, D6 Pers, 2005 Pers
BeitragVerfasst: Di 25.01.05 14:14 
Also:

Es ist ein Timer der in einer TComponent drin ist.
Aber um den Timer herzunehmen, muss man ihn ja folglich erst mal erstellen, da es sonst eine Fehlermelung gibt!

_________________
Der beste je Programmierte Trojaner: Windows XP
Wäre es nicht adequat, den Usus heterogener Termini zu minimieren?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 25.01.05 14:18 
versuchs mal mit TTimer.Create(self) oder TTimer.Create(<name von TComponent?>) keine ahnung, aber mit self könnte es schon klappen... ausserdem muss man glaub ich nen parent deklarieren.. keine Ahnung.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
hallo Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 450

WIN XP, SuSE 9.3
D3 Prof, D6 Pers, 2005 Pers
BeitragVerfasst: Di 25.01.05 14:22 
create(self) geht auch nicht.
Und einen .parent hat es auch nicht!

_________________
Der beste je Programmierte Trojaner: Windows XP
Wäre es nicht adequat, den Usus heterogener Termini zu minimieren?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 25.01.05 14:26 
Bei mir funktioniert das problemlos:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
var
  MyTimer: TTimer;
begin
  MyTimer:= TTimer.Create(self);

end;
hallo Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 450

WIN XP, SuSE 9.3
D3 Prof, D6 Pers, 2005 Pers
BeitragVerfasst: Di 25.01.05 14:29 
ES GEHT!!!

Ich hab timer.create(self); anstatt timer:=TTimer.create(self) geschrieben!


DANKE!!!!!!!!!!!!!!!

_________________
Der beste je Programmierte Trojaner: Windows XP
Wäre es nicht adequat, den Usus heterogener Termini zu minimieren?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 25.01.05 16:45 
anfangs wollt ich dich noch fragen, welchen code du verwendest... man o man. nächstesmal bitte GLEICH den fehlerhaften Code mitposten xD dann wär in 0,nix die antowort da gewesen.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.