I have started to play with Lazarus after several years away from Delphi (D7), as I have an old program that needs some updates.
The program uses a specific component, which I need to imprort into Lazarus.
1) I have run the pas file through the Lazarus Tools/Delphi Conversion/Convert Delphi Unit Into Lazarus Unit module and it seems to have converted ok: it Replaced unit "Windows" with "LCLIntf, LCLType, LMessages" in uses section.
2) I have used lazres to create the IDE icon from the png icon I extracted from the .dcu file.
This gave me 2 files: YP.pas and YP.lrs
3) Added a reference to LResources to the Uses clause of the YP.pas.
4) Added:
initialization
{$I YP.lrs}
just before the final .end of the .pas file.
I am a bit confused by the various instructions
, so can someone confirm what has to be done to add the component to the IDE?
Many thanks