mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-05-13 21:46:53 +02:00
27 lines
711 B
ObjectPascal
27 lines
711 B
ObjectPascal
unit uCEFLoader;
|
|
|
|
interface
|
|
|
|
uses
|
|
uCEFApplication;
|
|
|
|
implementation
|
|
|
|
procedure CreateGlobalCEFApp;
|
|
begin
|
|
GlobalCEFApp := TCefApplication.Create;
|
|
GlobalCEFApp.WindowlessRenderingEnabled := True;
|
|
GlobalCEFApp.ShowMessageDlg := False;
|
|
GlobalCEFApp.BrowserSubprocessPath := 'WebpageSnapshotUniGUI_sp.exe'; // This is the other EXE for the CEF subprocesses. It's on the same directory as this app.
|
|
GlobalCEFApp.BlinkSettings := 'hideScrollbars'; // This setting removes all scrollbars to capture a cleaner snapshot
|
|
GlobalCEFApp.StartMainProcess;
|
|
end;
|
|
|
|
initialization
|
|
CreateGlobalCEFApp;
|
|
|
|
finalization
|
|
DestroyGlobalCEFApp;
|
|
|
|
end.
|