Lazarus

Programming => General => Topic started by: sysrpl on July 02, 2022, 06:11:36 am

Title: A Pascal Library with Demos
Post by: sysrpl on July 02, 2022, 06:11:36 am
I just wanted you guys to know I wrote a landing page for my recently updated Codebot Cross pascal library.

https://www.getlazarus.org/cross/

There's some good information there about how it works and what it does, along with links to demos.

Enjoy
Title: Re: A Pascal Library with Demos
Post by: 440bx on July 02, 2022, 06:34:03 am
By all accounts that is a very nicely done job.

Thanks for sharing.
Title: Re: A Pascal Library with Demos
Post by: DonAlfredo on July 02, 2022, 07:52:17 am
Very nice ! And many thanks for sharing.
Few remarks.
1: On FPC trunk, the library does not compile due to the overloaded functions problem.
2: I guess the examples need a dependency on codebot-control/design lpk.
Title: Re: A Pascal Library with Demos
Post by: alaa123456789 on July 02, 2022, 10:58:11 am
I just wanted you guys to know I wrote a landing page for my recently updated Codebot Cross pascal library.

https://www.getlazarus.org/cross/

There's some good information there about how it works and what it does, along with links to demos.

Enjoy
very nice , could you please add your controls to online package manger as it is easy to install ,we are finding difficulty with LPK file as we dont know on what packages they are dependent
thanks
Title: Re: A Pascal Library with Demos
Post by: sysrpl on July 02, 2022, 11:41:35 am
@DonAlfredo

Can you explain what is the problems with fpc trunk and overloads? I use a pretty much up to date FPC and do not have that problem.

And yes, the design time package is needed if you want to open some of the examples form files in the IDE designers, as the designer time package uses the register component and / or register property and component editor extensions.

Thank you for the feedback.

Edit: I can see your attached screen capture now. I'll check into the problem but I've compiled for Windows with this library recently and didn't have the problem your are highlighting.
Title: Re: A Pascal Library with Demos
Post by: DonAlfredo on July 02, 2022, 03:31:33 pm
The problem occurs only when compiling for win64.
Quote
codebot.interop.windows.gdiplus.pas(11906,45) Error: Can't determine which overloaded function to call
codebot.interop.windows.gdiplus.pas(8215,24) Hint: Found declaration: constructor Create(QWord;QWord);
codebot.interop.windows.gdiplus.pas(8094,24) Hint: Found declaration: constructor Create(LongInt;LongInt;LongInt=`2498570`);

Edit.
For sure this is a compiler problem.
But I guess the best thing to do is a work-around in the sources until a fix is available.
Line 11906 in codebot.interop.windows.gdiplus.pas
Code: Pascal  [Select][+][-]
  1.   B := TGdiBitmap.Create(Integer(Size * 2), Integer(Size * 2));
Title: Re: A Pascal Library with Demos
Post by: fcu on July 02, 2022, 04:40:27 pm
thanks for sharing this awesome library
i tried installing your library , all gose right until i install codebot_controls_design.lpk , lazarus stop installing this package andi show this error

lazarus.pp(1,1) Fatal: Cannot find codebot_controls used by Lazarus, incompatible ppu=D:\FPC\Codebot.Cross-master\source\codebot_controls\lib\i386-win32\codebot_controls.ppu, multiple packages: codebot_controls_design, codebot_controls

note : i am using FPC 3.2.2 in Windows7 32bits
Title: Re: A Pascal Library with Demos
Post by: sysrpl on July 02, 2022, 07:39:05 pm
@fcu

Try this.

1 Open the codebot.lpk package and press the build button. You should get no errors.
2 Open the codebot_controls.lpk package and press the build button. You should get no errors.
3 Open the codebot_controls_design.lpk package and press the build button. You should get no errors.
4 In the codebot_controls_design.lpk package click use -> install, then click yes to rebuild the Lazarus IDE.

If any of the steps fail, try exiting Lazarus, opening it again, and starting over from step 1.
Title: Re: A Pascal Library with Demos
Post by: fcu on July 02, 2022, 08:34:10 pm
@fcu

Try this.

1 Open the codebot.lpk package and press the build button. You should get no errors.
2 Open the codebot_controls.lpk package and press the build button. You should get no errors.
3 Open the codebot_controls_design.lpk package and press the build button. You should get no errors.
4 In the codebot_controls_design.lpk package click use -> install, then click yes to rebuild the Lazarus IDE.

If any of the steps fail, try exiting Lazarus, opening it again, and starting over from step 1.

thanks , it works now
Title: Re: A Pascal Library with Demos
Post by: cpicanco on July 03, 2022, 06:43:54 pm
Excellent work, many thanks for that!  :)
TinyPortal © 2005-2018