Autor Beitrag
greenhorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 68


D5
BeitragVerfasst: So 15.10.06 15:03 
hallo zusammen,

ereignisbehandlungsroutinen mit dem objectinspektor anzulegen ist ja kein problem. aber wie kann man dies im programmcode machen, ohne den objectinspektor einzusetzen? weiss jemand wie's geht, hab hier noch nichts gefunden. vielen dank für euere hilfe. :gruebel:

mfg.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 15.10.06 15:05 
Du schaust dir an, was der OI für Programmtext einfügt. Und das machst du dann manuell. ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 15.10.06 15:21 
user profile iconMarco D. hat folgendes geschrieben:
Du schaust dir an, was der OI für Programmtext einfügt. Und das machst du dann manuell. ;)

Ähh, ich glaube er meint, wie man das dann zuweist, damit es auch aufgerufen wird.
ausblenden Delphi-Quelltext
1:
  Memo1.OnClick := Memo1Click;					

Natürlich musst du die Prozedur Memo1Click auch anlegen und oben in der Formulardeklaration eintragen, wie es sonst automatisch gemacht wird, wieja auch user profile iconMarco D. bereits sagte (bzw. andeutete ;-)). Wenn du keine Personal Edition nutzt, kannst du auch einfach oben im Formularquelltext die Prozedur eintragen udn Str + C drücken, dann wird die automatisch angelegt. Du musst nur die richtigen Parameter wissen, dafür kannst du ja einfach die Methode einmal aus dem OI anlegen und dort nur den Eintrag löschen.
Die Prozedur bleibt dann ja erhalten.
greenhorn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 68


D5
BeitragVerfasst: So 15.10.06 19:19 
@jaenicke: das heisst dann einfach den standardeventnamen nehmen und der die adresse einer procedure/funktion zuweisen.

danke, werd ich mal probieren.