mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-04-17 06:57:13 +02:00
35 lines
647 B
ObjectPascal
35 lines
647 B
ObjectPascal
program JSDialogBrowser;
|
|
|
|
{$I ..\..\..\..\source\cef.inc}
|
|
|
|
uses
|
|
{$IFDEF DELPHI16_UP}
|
|
Vcl.Forms,
|
|
WinApi.Windows,
|
|
{$ELSE}
|
|
Forms, Interfaces,
|
|
Windows,
|
|
{$ENDIF }
|
|
uCEFApplication,
|
|
uJSDialogBrowser in 'uJSDialogBrowser.pas' {JSDialogBrowserFrm};
|
|
|
|
//{$R *.res}
|
|
|
|
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
|
|
begin
|
|
CreateGlobalCEFApp;
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
begin
|
|
Application.Initialize;
|
|
{$IFDEF DELPHI11_UP}
|
|
Application.MainFormOnTaskbar := True;
|
|
{$ENDIF}
|
|
Application.CreateForm(TJSDialogBrowserFrm, JSDialogBrowserFrm);
|
|
Application.Run;
|
|
end;
|
|
|
|
DestroyGlobalCEFApp;
|
|
end.
|