[Lazarus] Menu Click Event in Runtime

Rogério Martins rogmartins at gmail.com
Fri Apr 29 19:33:04 CEST 2011

Hi !

How do i make an assignment between a TMenuItem.OnClick event and the
procedure xyz (Sender: TObject)  at runtime ?

In Delphi i just do:

menuItem.OnClick := MenuClick;
where procedure declaration is procedure MenuClick(Sender: TObject);

In lazarus, this code does not compile.

How do i correct this ?
The Ubuntu Counter Project - user number #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110429/bd98cd0d/attachment-0002.html>

More information about the Lazarus mailing list