[Lazarus] Installing custom control in Lazarus - where can I find it?

Bo Berglund bo.berglund at gmail.com
Fri Aug 28 08:12:07 CEST 2020


On Thu, 27 Aug 2020 23:27:27 +0200, Werner Pamler via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>Am 27.08.2020 um 22:51 schrieb Bo Berglund via lazarus:
>> Now the strangest thing is that in this process Lazarus has completely
>> mangled the EasyListView.pas source file so it now only has this
>> content wheras the original was 27 kbytes....:
>
>I guess the component code is in unit EasyListView.pas and the package 
>is named EasyListview.lpk. This is bad because installation creates the 
>"package unit" with the same name as the package file, i.e. it 
>overwrites your component unit.
>
>Remedy: give the package a different, more "package-like" name, e.g. 
>EasyListViewPkg, or LazEasyListView (also to distinguish from any Delphy 
>package). Carefully check the contents of the new LazEasyListView.lpk 
>file to make sure that the old package name is not mentioned any more 
>(or recreate the package from the start - this is not difficult and 
>almost no work).
>
>IIRC, I had tried to convert this component some time ago, too, and 
>found it very difficult. Well, maybe because my intention was to make it 
>cross-platform.

Hello Werner!
After posting this I late last night found a mail correspondence with
you from June 2018 where you helped me convert this very component!

And luckily the final files were attached in the email at the end of
the conversation so I could extract them.

Meanwhile I have had to replace my old Win7 computer and lost a lot of
files in the process... :(

Anyway now I have placed the files under subversion so that will not
happen again.

So I took these files (where the naming was better with a difference
between the package and the sourcefiles) and repeated the process and
it succeeded! I now have an EasyListView component on my Lazarus
palette!

This is very good because almost all of my old GUI style Delphi
projects used the component to display data and so is crucial to being
able to port them.

The reason I had forgotten our interaction could be that at the time
in 2018 I was convalescing from a bad fall from the roof of my house
and could barely move...

I want to (hopefully again) thank you so very much for your help at
the time!
 

-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list