1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-22 22:17:48 +02:00

Added WebpageSnapshot demo for UniGUI

This commit is contained in:
Salvador Díaz Fau
2025-01-13 18:45:34 +01:00
parent 38b9b5ae12
commit 373a19f8f5
15 changed files with 3523 additions and 1 deletions

View File

@ -0,0 +1,26 @@
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.