[Lazarus] How do you set an event at runtime?

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Jan 4 19:07:45 CET 2011


2011/1/4 Frank Church <vfclists at gmail.com>:
>
> Is there some way to set the event handling property of a component at
> runtime?


SomeComponent.OnSomeEvent := @YourEventHandler;


-- 
Regards,
  - Graeme -


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




More information about the Lazarus mailing list