Hi All
Thanks for your help, it was a while ago when I did component development and that was with Delphi 7, I though the issue was the event handler.
I was having issues with the assigning the event handler, I was using Self.OnClick := DoOnClick; for example and was getting errors, did not realise the @ before the procedure call.
Anyway it is working so thanks fro all your help.
GetMem you are right by the way the Lazarus IDE is very good.
Regards Andrew