Recent

Author Topic: A Pascal Library with Demos  (Read 687 times)

sysrpl

  • Sr. Member
  • ****
  • Posts: 277
    • Get Lazarus
A Pascal Library with Demos
« 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

440bx

  • Hero Member
  • *****
  • Posts: 2933
Re: A Pascal Library with Demos
« Reply #1 on: July 02, 2022, 06:34:03 am »
By all accounts that is a very nicely done job.

Thanks for sharing.
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1559
Re: A Pascal Library with Demos
« Reply #2 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.

alaa123456789

  • Full Member
  • ***
  • Posts: 229
  • Try your Best to learn & help others
    • youtube:
Re: A Pascal Library with Demos
« Reply #3 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
« Last Edit: July 02, 2022, 11:03:59 am by alaa123456789 »

sysrpl

  • Sr. Member
  • ****
  • Posts: 277
    • Get Lazarus
Re: A Pascal Library with Demos
« Reply #4 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.
« Last Edit: July 02, 2022, 12:05:43 pm by sysrpl »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1559
Re: A Pascal Library with Demos
« Reply #5 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));

fcu

  • Jr. Member
  • **
  • Posts: 77
Re: A Pascal Library with Demos
« Reply #6 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
« Last Edit: July 02, 2022, 04:42:52 pm by fcu »

sysrpl

  • Sr. Member
  • ****
  • Posts: 277
    • Get Lazarus
Re: A Pascal Library with Demos
« Reply #7 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.

fcu

  • Jr. Member
  • **
  • Posts: 77
Re: A Pascal Library with Demos
« Reply #8 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

cpicanco

  • Sr. Member
  • ****
  • Posts: 468
  • Programmer and Behavioral Scientist
    • Portfolio
Re: A Pascal Library with Demos
« Reply #9 on: July 03, 2022, 06:43:54 pm »
Excellent work, many thanks for that!  :)

 

TinyPortal © 2005-2018