Some weeks ago i tried to migrate my current apps from DCEF3 to CEF4. I managed a test app to work, but i faced some issues and then sticked with DCEF3 until now.
But now i need to migrate ASAP because the main website my apps use are displaying old browser warnings...
So i download the current master branch from github and the DLLS. I'm just trying to make a simple application with TChromiumWindow work by navigating to google.com, but somehow it's not working....
What is happening : I open my app inside Delphi 2007. It will compile and run without errors. But when i try to navigate to any page in TChromiumWindow, the IDE shows a breakpoint in the 'CPU' window. I click on F9 again, my app shows up , but no site is loaded, just a blank page.
I think i'm missing something here... Please help me.
Thanks in advance !
Code: Select all
program chrome;
uses
Forms,
uCEFApplication in '..\extras\cef4\source\uCEFApplication.pas',
princ in 'princ.pas' {Form1};
{$R *.res}
begin
GlobalCEFApp := TCefApplication.Create;
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
end;
GlobalCEFApp.Free;
end.
Code: Select all
unit princ;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, uCEFChromium, uCEFWindowParent, ExtCtrls, uCEFChromiumWindow;
type
TForm1 = class(TForm)
Panel1: TPanel;
Edit1: TEdit;
Button1: TButton;
Panel2: TPanel;
web: TChromiumWindow;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
web.LoadURL(edit1.text);
end;
end.