On 2015-03-11 16:39, Felipe Monteiro de Carvalho wrote:
>    MyItem.OnClick:=@MyPopUp;
>    MySubItem1.OnClick:=@MyPopUp;

More specifically... it depends of the compiler mode. Is the source code
shared between Lazarus and Delphi? If so you probably want to use the
delphi mode at the top of the unit. Then no @ prefix is required.
  {$mode delphi}

If the code is Lazarus only, then you probably want the objfpc mode - at
which point you need to add the @ prefix to the event handler as quoted
above.
  {$mode objfpc}


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to