Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Procedure als TNotify Event (https://www.delphipraxis.net/16284-procedure-als-tnotify-event.html)

Synonym 14. Feb 2004 12:41


Procedure als TNotify Event
 
Hi,


wie muss ich eine Procedure deklarieren, damit ich sie z.B. bei einem dynamisch erzeugtem Menüeintrag eines PopupMenüs einfügen kann?

newitem.onClick := suche;

gibt einen Fehler in Form

Zitat:

Fehler Procedure und TNotify Event
Gruß

Synonym

SirThornberry 14. Feb 2004 12:46

Re: Procedure als TNotify Event
 
sie muss einfach in form von TNotify sein.
Also
Delphi-Quellcode:
procedure myclass.myprocedure(Sender: TObject);

Synonym 14. Feb 2004 12:47

Re: Procedure als TNotify Event
 
ok, thx

Bobator 14. Feb 2004 12:52

Re: Procedure als TNotify Event
 
...und sie muss published sein.

SirThornberry 14. Feb 2004 12:57

Re: Procedure als TNotify Event
 
die muss nicht unbedingt published sein. kann auch im privat teil etc. deklariert sein


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:43 Uhr.

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