Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-19 Thread Bo Berglund via Lazarus
On Mon, 11 Jun 2018 10:13:21 +0200, Michael Schnell via Lazarus wrote: >On 08.06.2018 19:05, Bo Berglund via Lazarus wrote: >> This Delphi package is a collection of some 20 components and all of >> them have Register procedures inside of each source file. > >Are those really IDE-relevant package

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-11 Thread Michael Schnell via Lazarus
On 08.06.2018 19:05, Bo Berglund via Lazarus wrote: This Delphi package is a collection of some 20 components and all of them have Register procedures inside of each source file. Are those really IDE-relevant packages (showing up in the visual component selection ) ? If not, they might be ju

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-10 Thread Mattias Gaertner via Lazarus
On Sun, 10 Jun 2018 09:54:34 +0200 Bo Berglund via Lazarus wrote: >[...] > How do I add a *package* Register method? And will it place the > components in the package on an IDE tab? http://wiki.lazarus.freepascal.org/IDE_Window:_Package_Editor Click for each such unit 'Register unit' Mattias -

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? - comctrls.pp.patch.zip (1/1)

2018-06-10 Thread Bo Berglund via Lazarus
begin 644 comctrls.pp.patch.zip M4$L#!!0``@`(`#U0RDR:L"0LT&L!```18V]M8W1R;',N<'`N<&%T M8VAUD%L+@D`0A=\#_\,\*OC0FI=4"DP0A""AJ,=8;"M!75G'_]]L91>HE[/+ M0 M;#IMX'7!%6\B*%#E+5H1D(J+4-#CJ>1U'1L3-IL3:!8RF\1YT`"R=.A1-ENI M\)@1+OIH$/\R?8%TK.L%G+D^&\V=DJ4X#32`]A\JO-Z_]&;RC!TQ-(1V/%\M MG>7YE.4%KW;C`N

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? - comctrls.pp.patch.zip (0/1)

2018-06-10 Thread Bo Berglund via Lazarus
On Sun, 10 Jun 2018 09:56:48 +0200, Bo Berglund via Lazarus wrote: >On Sun, 10 Jun 2018 09:54:34 +0200, Bo Berglund via Lazarus > wrote: > >>With Werner's help I edited the comctrl.pp and comctrl.inc files to > >Sorry, typo! >I actually edited the comctrls.pp and customlistview.inc files! > I am

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-10 Thread Bo Berglund via Lazarus
On Sun, 10 Jun 2018 09:54:34 +0200, Bo Berglund via Lazarus wrote: >With Werner's help I edited the comctrl.pp and comctrl.inc files to Sory, typo! I actually edited the comctrls.pp and customlistview.inc files! -- Bo Berglund Developer in Sweden -- __

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-10 Thread Bo Berglund via Lazarus
On Fri, 08 Jun 2018 20:08:02 +0200, Bo Berglund via Lazarus wrote: >On every line mentioning CustomSort there is an error: >Error: Identifier not found "CustomSort" > >CustomSort is an identifier in the parent TListView unless I am >mistaken. This error never appeared in Delphi... FYI: I got off

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Bo Berglund via Lazarus
On Sat, 9 Jun 2018 19:08:23 +0200, Werner Pamler via Lazarus wrote: >Is this MustangPeak's EasyListView >https://github.com/TurboPack/MustangpeakEasyListview)? I was trying to >convert it myself, but did not even get this far. I got lost in the >dependence on another package which did not want

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Werner Pamler via Lazarus
Is this MustangPeak's EasyListView https://github.com/TurboPack/MustangpeakEasyListview)? I was trying to convert it myself, but did not even get this far. I got lost in the dependence on another package which did not want to resolve - very windows-specific stuff. If it is a non-closed packaged

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Bo Berglund via Lazarus
On Sat, 9 Jun 2018 17:50:43 +0200, Mattias Gaertner via Lazarus wrote: >TCustomListView.CustomSort exists in LCL as well. >Check the declaration of SortByStringProc: > >function SortByStringProc(Item1, Item2: TListItem; >AOptionalParam: PtrInt): Integer; stdcall; > But why does it then not find

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Mattias Gaertner via Lazarus
On Fri, 08 Jun 2018 20:08:02 +0200 Bo Berglund via Lazarus wrote: > On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus >[...] > procedure TEasyListView.DoColumnSort; > var > SortStyle: TColumnSortStyle; > begin > if ViewStyle <> vsReport then Exit; > if not FColumnSorting then E

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Bo Berglund via Lazarus
On Sat, 09 Jun 2018 17:19:01 +0200, Bo Berglund via Lazarus wrote: >The CustomSort it complains about might exist in a used unit in Delphi >but not in Lazarus for example? I opened Delphi 2007 and dropped an EasyListview object onto the form so I could trace this CustomSort method. If I use the

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Bo Berglund via Lazarus
On Sat, 9 Jun 2018 11:27:11 +0200, Werner Pamler via Lazarus wrote: >> Did I start this new package in the wrong way? I simply used >> Package/NewPackage to bring up the dialogs > >I think this is correct. I converted a lot of Delphi packages this way, >without the converter - it gives me mo

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Bo Berglund via Lazarus
On Sat, 9 Jun 2018 11:39:28 +0200, Mattias Gaertner via Lazarus wrote: >On Fri, 08 Jun 2018 20:08:02 +0200 >Bo Berglund via Lazarus wrote: > >>[...] >> Then I tried compiling and for the first few components all I had to >> do was add an {$IFDEF DELPHI} bracket around some Delphi version >> chec

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Mattias Gaertner via Lazarus
On Fri, 08 Jun 2018 20:08:02 +0200 Bo Berglund via Lazarus wrote: >[...] > Then I tried compiling and for the first few components all I had to > do was add an {$IFDEF DELPHI} bracket around some Delphi version > checking code and they compiled. > I also added this to the top of each component so

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-09 Thread Werner Pamler via Lazarus
Am 08.06.2018 um 20:08 schrieb Bo Berglund via Lazarus: On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus wrote: Or is it just the converter that is havíng problems? In the package dialog, check "Register unit" for units containing Register procedure. I didn't remember the last t

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-08 Thread Bo Berglund via Lazarus
On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus wrote: >> Or is it just the converter that is havíng problems? > >In the package dialog, check "Register unit" for units containing Register >procedure. I didn't remember the last time I converted a Delphi package, but >it could be t

Re: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-08 Thread leledumbo via Lazarus
> Or is it just the converter that is havíng problems? In the package dialog, check "Register unit" for units containing Register procedure. I didn't remember the last time I converted a Delphi package, but it could be that the converter doesn't detect Register properly. -- Sent from: http://f

[Lazarus] Converting a component package Delphi->Lazarus using built-in converter?

2018-06-08 Thread Bo Berglund via Lazarus
As part of an effort to port a Delphi program to FPC/Lazarus I have tried to install a custom package of components we use with Delphi from D7 to XE5 into Lazarus 1.8.4 win32. I started by using the menu function: Tool/Delphi Conversion/Convert Delphi Package After navigating to the dpk file in