Re: [fpc-pascal] Declare a standalone procedure of object (TNotifyEvent)

2007-09-12 Thread Jonas Maebe
On 13 Sep 2007, at 04:00, Luiz Americo Pereira Camara wrote: procedure FooBar of object; begin end; Without sucess. Is it possible to declare such function to use as a TNotifyEvent without creating a class only to hold the callback method? Not without unsupported ugly hacking and explicit

[fpc-pascal] Declare a standalone procedure of object (TNotifyEvent)

2007-09-12 Thread Luiz Americo Pereira Camara
I'm trying to declare a standalone function (not attached to a class) to use as a TNotifyEvent. I tried procedure FooBar of object; begin end; Without sucess. Is it possible to declare such function to use as a TNotifyEvent without creating a class only to hold the callback method? Luiz __