You've already forked CEF4Delphi
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:
26
demos/Delphi_UniGUI/WebpageSnapshot/uCEFLoader.pas
Normal file
26
demos/Delphi_UniGUI/WebpageSnapshot/uCEFLoader.pas
Normal 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.
|
Reference in New Issue
Block a user