You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Added support for Lazarus/FPC (windows 32bit)
This commit is contained in:
29
demos/SimpleLazarusBrowser/SimpleLazarusBrowser.lpr
Normal file
29
demos/SimpleLazarusBrowser/SimpleLazarusBrowser.lpr
Normal file
@ -0,0 +1,29 @@
|
||||
program SimpleLazarusBrowser;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
||||
cthreads,
|
||||
{$ENDIF}{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, uSimpleLazarusBrowser
|
||||
{ you can add units after this }
|
||||
,uCEFApplication;
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
GlobalCEFApp := TCefApplication.Create;
|
||||
|
||||
if GlobalCEFApp.StartMainProcess then
|
||||
begin
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TForm1, Form1);
|
||||
Application.Run;
|
||||
end;
|
||||
|
||||
GlobalCEFApp.Free;
|
||||
end.
|
||||
|
Reference in New Issue
Block a user