In the Lazarus IDE top menu ,These are the steps I used to build a new custom component.:
- Package
- New Package
- Add
- New Component --> Select TcustomControl
The first screenshot shows the form after following the steps above — this is where you can assign an icon to your component. So far, everything works as expected. The second screenshot shows the component after compiling and installing the package, and again, no issues there.
Now, I have two questions:
1. Changing the Component Icon:
If I want to update the icon and use a different one, what’s the correct way to do that? I couldn’t find clear instructions for replacing the existing icon.
2. Issue with Publishing the Package:
When I tried to publish the package and set a
custom folder path, the dialog said it was published successfully. However, upon checking, the test files I had placed in that folder were deleted, and nothing was saved or published. While this isn’t a major issue for me, I thought it was worth bringing to the developers' attention, since the warning mechanism works but the publishing doesn't seem to save anything.
EDIT: Screenshots 3 and 4 are for issue 2.