Ok, So I am using FPC 3.2.2 with Lazarus 2.2.6. Windows 7 operating system, 32Gb ram, Asus ROG m/board, Intel Chipset.
CEF4Delphi package is installed and units are listed as per required. Compiles fine on CTRL+ F9, but nothing happens.
On Form create, I've got
GlobalCEFApp := TCefApplication.Create;
Then, GlobalCEFApp.GlobalContextInitialized;
Then I have put:-
While not ChromiumWindow1.CreateBrowser Do
Begin
// Timer1.Enabled := True;
ChromiumWindow1.CreateBrowser;
Application.ProcessMessages;
End;
The timer1Timer procedure is taken out because it still didn't work.
The components are:-
ChromiumWindow1;
Timer1;
My Button on my form is called ChromeWeb
On the 'Click Event':-
ChromiumWindow1.CreateBrowser;
Timer1Timer;
ChromiumWindow1.initialized;
if ChromiumWindow1.Initialized then
begin
// Load the desired URL
ShowMessage('Initialized');
ChromiumWindow1.LoadURL('
https://www.google.co.uk/'); end
Else
Begin
Timer1Timer;
ChromiumWindow1.Initialized;
ShowMessage(' NOT Initialized');
End;
After all that I get diddly squat.......I have read all the demos and tried to get it right but I think I am missing something.
What am I not doing? It is driving me nuts. It is only a hobby but it beats watching TV all night.
Please help......