Page 1 of 1

CEF4Delphi now supports Lazarus/FPC

Posted: Sat May 12, 2018 1:06 pm
by salvadordf
Hi,

I just uploaded the new CEF4Delphi version with support for Lazarus / FPC.

I tested it using Lazarus 1.8.2 and FPC 3.0.4 in Windows. Don't try to compile it for other operating systems.

I added a new demo called SimpleLazarusBrowser and it works correctly in 32 bits but I still have to fix an initialization issue in 64 bits. :oops:

If you want to test it, open the cef4delphi_lazarus.lpk package, compile it and install it.

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

Re: CEF4Delphi now supports Lazarus/FPC

Posted: Mon May 14, 2018 2:54 pm
by salvadordf
I just uploaded the fix for the 64 bit initialization issue.

Re: CEF4Delphi now supports Lazarus/FPC

Posted: Fri Jun 15, 2018 12:25 pm
by salvadordf
I'll take a look at your SimpleOSRBrowser port as soon as I can.

Thanks!!!! :D

Re: CEF4Delphi now supports Lazarus/FPC

Posted: Sun Jun 17, 2018 12:33 pm
by salvadordf
The last CEF4Delphi update includes the SimpleLazOSRBrowser demo thanks to LazFan! :D

I had to make some adaptations to the OnPaint event and it still has some issues with key presses beyond ascii char 127.

Re: CEF4Delphi now supports Lazarus/FPC

Posted: Mon Jun 18, 2018 3:17 pm
by salvadordf
Thanks again LazFan!

I'll try your solution as soon as I can.

Re: CEF4Delphi now supports Lazarus/FPC

Posted: Mon Jun 18, 2018 8:00 pm
by salvadordf
I added the TBufferPanel.OnUTF8KeyPress event and I also added you fix for this bug.

Thanks!!! :D

Re: CEF4Delphi now supports Lazarus/FPC

Posted: Tue Jun 19, 2018 7:16 am
by salvadordf
Hi,

The SimpleServer demo only has the minimum code to make it work as an HTTP server.

You need to use the events and procedures related to websockets :
  • TCEFServerComponent.OnWebSocketRequest
  • TCEFServerComponent.OnWebSocketConnected
  • TCEFServerComponent.OnWebSocketMessage
  • TCEFServerComponent.SendWebSocketMessage
Read the official CEF3 code comments for more details :
https://github.com/chromiumembedded/cef ... ver_capi.h