* * *

Author Topic: CEF4Delphi now supports Lazarus/FPC  (Read 1008 times)

salvadordf

  • New member
  • *
  • Posts: 7
    • BriskBard
CEF4Delphi now supports Lazarus/FPC
« on: May 18, 2018, 09:53:04 am »
Hi,

I'm the maintainer of an open source project called CEF4Delphi that was released more a than a year ago to embed Chromium-based browsers in our applications.

Originally, CEF4Delphi only supported Delphi but the latest version also has Lazarus/FPC support and it can be used for Windows targets.

CEF4Delphi is based on DCEF3, made by Henri Gourvest. It uses the latest CEF3 branch  3.3359.1772.gd1df190 which includes Chromium 66.0.3359.117.

This is my first Lazarus component and any help from someone with more experience with Lazarus/FPC is more than welcome.

If you want to test it, install the cef4delphi_lazarus.lpk package and run the SimpleLazarusBrowser demo.

https://github.com/salvadordf/CEF4Delphi
Maintainer of the CEF4Delphi project.

silvestre

  • New member
  • *
  • Posts: 37
Re: CEF4Delphi now supports Lazarus/FPC
« Reply #1 on: May 18, 2018, 10:58:39 am »
I have been using CEF4Delphi for some months now as a replacement for Twebbrowser in Delphi and it is great news that it is also available in Fpc/Lazarus, opening the multi-platform field. I have only words of praise for Salvador's work. :)

Alextp

  • Hero Member
  • *****
  • Posts: 636
    • UVviewsoft
Re: CEF4Delphi now supports Lazarus/FPC
« Reply #2 on: May 24, 2018, 09:21:37 pm »
Suggestions
1- move .lrs files to subdir source/res/, and include them from this subdir.

2- make folders like in my components:
see e.g. https://github.com/Alexey-T/ATSynEdit
this way user can copy entire subdir e.g. cef4delphi/ (it has *.pas *.lpk *.lrs in dirs) and its done.
demos go to another dir, and user doesnt copy them.

Alextp

  • Hero Member
  • *****
  • Posts: 636
    • UVviewsoft
Re: CEF4Delphi now supports Lazarus/FPC
« Reply #3 on: May 24, 2018, 09:26:21 pm »
3- I hope ustring (in your code) is UnicodeString or string, not Widestring.

salvadordf

  • New member
  • *
  • Posts: 7
    • BriskBard
Re: CEF4Delphi now supports Lazarus/FPC
« Reply #4 on: May 25, 2018, 08:23:37 am »
Yes, ustring is a unicodestring in FPC.

Thanks for the suggestions!
Maintainer of the CEF4Delphi project.

JernejL

  • New member
  • *
  • Posts: 17
Re: CEF4Delphi now supports Lazarus/FPC
« Reply #5 on: May 25, 2018, 09:56:45 am »
Is there a possibility of using this on linux or arm platforms?
 

salvadordf

  • New member
  • *
  • Posts: 7
    • BriskBard
Re: CEF4Delphi now supports Lazarus/FPC
« Reply #6 on: May 25, 2018, 10:50:55 am »
Sorry, but at this moment CEF4Delphi only supports Windows on 32bit and 64bit.

I would love to add support for other platforms but I don't know how to program in linux or macos.

In the latest CEF4Delphi update I added some CEF initialization changes needed to support linux and macos but any help would be greatly appreciated.

Maintainer of the CEF4Delphi project.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus