1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-04-17 06:57:13 +02:00
Salvador Díaz Fau 79b76d3e71 Fixed black browser in Lazarus demos
Added a manifest to all Lazarus demos for Windows
2024-05-02 12:31:19 +02:00

37 lines
667 B
ObjectPascal

program SimpleServer;
{$MODE Delphi}
{$I ..\..\..\source\cef.inc}
uses
{$IFDEF DELPHI16_UP}
Vcl.Forms,
{$ELSE}
Forms, Interfaces,
{$ENDIF }
uCEFApplication,
uSimpleServer in 'uSimpleServer.pas' {SimpleServerFrm};
{.$R *.res}
{$R *.res}
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.SetCurrentDir := True;
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
{$IFDEF DELPHI11_UP}
Application.MainFormOnTaskbar := True;
{$ENDIF}
Application.CreateForm(TSimpleServerFrm, SimpleServerFrm);
Application.Run;
end;
GlobalCEFApp.Free;
GlobalCEFApp := nil;
end.