You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Added WebpageSnapshot demo for UniGUI
This commit is contained in:
40
demos/Delphi_UniGUI/WebpageSnapshot/ServerModule.pas
Normal file
40
demos/Delphi_UniGUI/WebpageSnapshot/ServerModule.pas
Normal file
@ -0,0 +1,40 @@
|
||||
unit ServerModule;
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, uniGUIServer, uniGUIMainModule, uniGUIApplication, uIdCustomHTTPServer,
|
||||
uniGUITypes;
|
||||
|
||||
type
|
||||
TUniServerModule = class(TUniGUIServerModule)
|
||||
private
|
||||
{ Private declarations }
|
||||
protected
|
||||
procedure FirstInit; override;
|
||||
public
|
||||
{ Public declarations }
|
||||
end;
|
||||
|
||||
function UniServerModule: TUniServerModule;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.dfm}
|
||||
|
||||
uses
|
||||
UniGUIVars;
|
||||
|
||||
function UniServerModule: TUniServerModule;
|
||||
begin
|
||||
Result := TUniServerModule(UniGUIServerInstance);
|
||||
end;
|
||||
|
||||
procedure TUniServerModule.FirstInit;
|
||||
begin
|
||||
InitServerModule(Self);
|
||||
end;
|
||||
|
||||
initialization
|
||||
RegisterServerModuleClass(TUniServerModule);
|
||||
end.
|
Reference in New Issue
Block a user