mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-11-16 08:15:55 +01:00
32 lines
634 B
ObjectPascal
32 lines
634 B
ObjectPascal
program FMXTabbedBrowser;
|
|
|
|
uses
|
|
System.StartUpCopy,
|
|
FMX.Forms,
|
|
uCEFApplication,
|
|
uMainForm in 'uMainForm.pas' {MainForm},
|
|
uBrowserTab in 'uBrowserTab.pas',
|
|
uBrowserFrame in 'uBrowserFrame.pas' {BrowserFrame: TFrame};
|
|
|
|
{$R *.res}
|
|
|
|
{$IFDEF MSWINDOWS}
|
|
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
{$SetPEFlags $20}
|
|
{$ENDIF}
|
|
|
|
begin
|
|
CreateGlobalCEFApp;
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
begin
|
|
Application.Initialize;
|
|
Application.CreateForm(TMainForm, MainForm);
|
|
Application.Run;
|
|
|
|
MainForm.Free;
|
|
end;
|
|
|
|
DestroyGlobalCEFApp;
|
|
end.
|