| Autor |
Beitrag |
Marco D.
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 13.07.06 18:19
Wenn bei meiner Komponente eine Property geändert wird, soll das jeweilige Feld geändert, aber auch gleichzeitig eine Prozedur aufgerufen werden. Wie stellt man so etwas an?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Born-to-Frag
      
Beiträge: 1094
Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
|
Verfasst: Do 13.07.06 18:32
_________________ Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 13.07.06 18:34
Wie kommt die Prozedure SetMyString denn an den zugewiesenen Wert?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Born-to-Frag
      
Beiträge: 1094
Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
|
Verfasst: Do 13.07.06 18:35
mit Strg+Shift+C wird sie erstellt, ansonsten legst du sie selbst an im private-Abschnitt: proc SetMyString(const Value: String);
PS: Die Parameter werden bei write einfach nicht angegeben
EDIT: Integer durch String getauscht 
_________________ Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 13.07.06 18:40
Wo muss sich denn für das Tastenkürzel die Schreibmarke befinden?
Und der Parameter Value enthält den der Property zugewiesenen Wert?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Born-to-Frag
      
Beiträge: 1094
Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
|
Verfasst: Do 13.07.06 18:47
Marco D. hat folgendes geschrieben: | | Wo muss sich denn für das Tastenkürzel die Schreibmarke befinden? |
Meinst du den Cursor?
Ist egal..
Marco D. hat folgendes geschrieben: | | Und der Parameter Value enthält den der Property zugewiesenen Wert? |

_________________ Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 13.07.06 22:53
Born-to-Frag hat folgendes geschrieben: | Marco D. hat folgendes geschrieben: | | Wo muss sich denn für das Tastenkürzel die Schreibmarke befinden? |
Meinst du den Cursor?
Ist egal..
|
Hm eben gings, jetzt nicht mehr  Wo genau muss der Cursor denn hin?
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 13.07.06 23:04
Er muss hinter 'Write'. Ich habs rausgefunden 
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|