You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-12 22:07:39 +02:00
Enable DPI aware setting in Lazarus demos for Windows
Cleanup some useless code in Lazarus demos for Windows
This commit is contained in:
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -3,20 +3,14 @@ program CookieVisitor;
|
|||||||
{$I ..\..\..\source\cef.inc}
|
{$I ..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
Forms,
|
||||||
Vcl.Forms,
|
Interfaces,
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms, Interfaces,
|
|
||||||
Windows,
|
Windows,
|
||||||
{$ENDIF }
|
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uCookieVisitor in 'uCookieVisitor.pas' {CookieVisitorFrm},
|
uCookieVisitor in 'uCookieVisitor.pas' {CookieVisitorFrm},
|
||||||
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
||||||
|
|
||||||
//{$R *.res}
|
{$IFDEF WIN32}
|
||||||
|
|
||||||
{$IFDEF MSWINDOWS}
|
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -29,9 +23,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TCookieVisitorFrm, CookieVisitorFrm);
|
Application.CreateForm(TCookieVisitorFrm, CookieVisitorFrm);
|
||||||
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object CookieVisitorFrm: TCookieVisitorFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object AddressBarPnl: TPanel
|
object AddressBarPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -5,13 +5,8 @@ unit uCookieVisitor;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, System.StrUtils,
|
|
||||||
{$ELSE}
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, StrUtils,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, StrUtils,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFCookieManager, uCEFCookieVisitor, uCEFWinControl, uCEFChromiumEvents;
|
uCEFCookieManager, uCEFCookieVisitor, uCEFWinControl, uCEFChromiumEvents;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -3,20 +3,15 @@ program CRBrowser;
|
|||||||
{$I ..\..\..\source\cef.inc}
|
{$I ..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
Forms,
|
||||||
Vcl.Forms,
|
Interfaces,
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms, Interfaces,
|
|
||||||
Windows,
|
Windows,
|
||||||
{$ENDIF }
|
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uMainForm in 'uMainForm.pas' {MainForm},
|
uMainForm in 'uMainForm.pas' {MainForm},
|
||||||
uCustomResourceHandler in 'uCustomResourceHandler.pas';
|
uCustomResourceHandler in 'uCustomResourceHandler.pas';
|
||||||
|
|
||||||
//{$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -26,9 +21,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TMainForm, MainForm);
|
Application.CreateForm(TMainForm, MainForm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -4,11 +4,7 @@ unit uCustomResourceHandler;
|
|||||||
|
|
||||||
interface
|
interface
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
System.Classes, WinApi.Windows, System.SysUtils,
|
|
||||||
{$ELSE}
|
|
||||||
Classes, Windows, SysUtils,
|
Classes, Windows, SysUtils,
|
||||||
{$ENDIF}
|
|
||||||
uCEFInterfaces, uCEFTypes, uCEFResourceHandler;
|
uCEFInterfaces, uCEFTypes, uCEFResourceHandler;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -10,10 +10,11 @@ object MainForm: TMainForm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object ChromiumWindow1: TChromiumWindow
|
object ChromiumWindow1: TChromiumWindow
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 637
|
Height = 637
|
||||||
|
@ -5,13 +5,8 @@ unit uMainForm;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFChromiumWindow, uCEFInterfaces, uCustomResourceHandler,
|
uCEFChromium, uCEFWindowParent, uCEFChromiumWindow, uCEFInterfaces, uCustomResourceHandler,
|
||||||
uCEFConstants, uCEFTypes;
|
uCEFConstants, uCEFTypes;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -3,14 +3,14 @@ program DOMVisitor;
|
|||||||
{$I ..\..\..\source\cef.inc}
|
{$I ..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Forms, Interfaces,
|
Forms,
|
||||||
|
Interfaces,
|
||||||
Windows,
|
Windows,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uDOMVisitor in 'uDOMVisitor.pas' {DOMVisitorFrm};
|
uDOMVisitor in 'uDOMVisitor.pas' {DOMVisitorFrm};
|
||||||
|
|
||||||
//{$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -21,8 +21,6 @@ begin
|
|||||||
|
|
||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
//ReportMemoryLeaksOnShutdown := True;
|
|
||||||
|
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.MainFormOnTaskbar := True;
|
Application.MainFormOnTaskbar := True;
|
||||||
Application.CreateForm(TDOMVisitorFrm, DOMVisitorFrm);
|
Application.CreateForm(TDOMVisitorFrm, DOMVisitorFrm);
|
||||||
|
Binary file not shown.
@ -1,31 +1,20 @@
|
|||||||
program EditorBrowser;
|
program EditorBrowser;
|
||||||
|
|
||||||
{$IFDEF FPC}
|
{$MODE Delphi}
|
||||||
{$MODE Delphi}
|
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
{$I ..\..\..\source\cef.inc}
|
{$I ..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
{$IFnDEF FPC}
|
|
||||||
{$ELSE}
|
|
||||||
Interfaces,
|
|
||||||
{$ENDIF}
|
|
||||||
Forms,
|
Forms,
|
||||||
Windows,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uEditorBrowser in 'uEditorBrowser.pas' {Form1};
|
uEditorBrowser in 'uEditorBrowser.pas' {Form1};
|
||||||
|
|
||||||
{.$R *.res}
|
{.$R *.res}
|
||||||
|
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
// If you don't add this flag the rederer process will crash when you try to load large images.
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -35,9 +24,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TForm1, Form1);
|
Application.CreateForm(TForm1, Form1);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
Binary file not shown.
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -3,22 +3,15 @@ program ExternalPumpBrowser;
|
|||||||
{$I ..\..\..\source\cef.inc}
|
{$I ..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
Forms,
|
||||||
Vcl.Forms,
|
Interfaces,
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms, Interfaces,
|
|
||||||
Windows,
|
Windows,
|
||||||
{$ENDIF }
|
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uCEFWorkScheduler,
|
uCEFWorkScheduler,
|
||||||
uExternalPumpBrowser in 'uExternalPumpBrowser.pas' {ExternalPumpBrowserFrm};
|
uExternalPumpBrowser in 'uExternalPumpBrowser.pas' {ExternalPumpBrowserFrm};
|
||||||
|
|
||||||
//{$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
// If you don't add this flag the rederer process will crash when you try to load large images.
|
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -30,9 +23,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TExternalPumpBrowserFrm, ExternalPumpBrowserFrm);
|
Application.CreateForm(TExternalPumpBrowserFrm, ExternalPumpBrowserFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
|
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object ExternalPumpBrowserFrm: TExternalPumpBrowserFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object AddressPnl: TPanel
|
object AddressPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -5,13 +5,8 @@ unit uExternalPumpBrowser;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFTypes, uCEFConstants, uCEFInterfaces, uCEFWorkScheduler,
|
uCEFChromium, uCEFWindowParent, uCEFTypes, uCEFConstants, uCEFInterfaces, uCEFWorkScheduler,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,19 +5,14 @@ program FullScreenBrowser;
|
|||||||
{$I ..\..\..\source\cef.inc}
|
{$I ..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
Forms,
|
||||||
Vcl.Forms,
|
Windows,
|
||||||
WinApi.Windows,
|
Interfaces,
|
||||||
{$ELSE}
|
|
||||||
Forms, Windows,
|
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
|
||||||
{$ENDIF }
|
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uMainForm in 'uMainForm.pas' {MainForm};
|
uMainForm in 'uMainForm.pas' {MainForm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
|
Binary file not shown.
@ -6,16 +6,17 @@ object MainForm: TMainForm
|
|||||||
BorderIcons = []
|
BorderIcons = []
|
||||||
BorderStyle = bsNone
|
BorderStyle = bsNone
|
||||||
Caption = 'MainForm'
|
Caption = 'MainForm'
|
||||||
ClientHeight = 728
|
ClientHeight = 751
|
||||||
ClientWidth = 1396
|
ClientWidth = 1396
|
||||||
Color = clBtnFace
|
Color = clBtnFace
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
|
WindowState = wsMaximized
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
WindowState = wsMaximized
|
|
||||||
object CEFWindowParent1: TCEFWindowParent
|
object CEFWindowParent1: TCEFWindowParent
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 728
|
Height = 728
|
||||||
|
@ -5,14 +5,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
|
|
||||||
System.UITypes,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, ExtCtrls,
|
Controls, Forms, Dialogs, ExtCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -3,19 +3,14 @@ program JSDialogBrowser;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
Forms,
|
||||||
Vcl.Forms,
|
Interfaces,
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms, Interfaces,
|
|
||||||
Windows,
|
Windows,
|
||||||
{$ENDIF }
|
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSDialogBrowser in 'uJSDialogBrowser.pas' {JSDialogBrowserFrm};
|
uJSDialogBrowser in 'uJSDialogBrowser.pas' {JSDialogBrowserFrm};
|
||||||
|
|
||||||
//{$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -25,9 +20,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSDialogBrowserFrm, JSDialogBrowserFrm);
|
Application.CreateForm(TJSDialogBrowserFrm, JSDialogBrowserFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,12 +10,12 @@ object JSDialogBrowserFrm: TJSDialogBrowserFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
LCLVersion = '3.4.0.0'
|
|
||||||
object ChromiumWindow1: TChromiumWindow
|
object ChromiumWindow1: TChromiumWindow
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 603
|
Height = 603
|
||||||
|
@ -5,13 +5,8 @@ unit uJSDialogBrowser;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, System.SyncObjs,
|
|
||||||
{$ELSE}
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
Windows, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, SyncObjs,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, SyncObjs,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFChromiumWindow, uCEFInterfaces, uCEFTypes,
|
uCEFChromium, uCEFWindowParent, uCEFChromiumWindow, uCEFInterfaces, uCEFTypes,
|
||||||
uCEFConstants;
|
uCEFConstants;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,16 +5,15 @@ program JSEval;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Forms, Windows,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSEval in 'uJSEval.pas' {JSEvalFrm},
|
uJSEval in 'uJSEval.pas' {JSEvalFrm},
|
||||||
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -26,9 +25,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSEvalFrm, JSEvalFrm);
|
Application.CreateForm(TJSEvalFrm, JSEvalFrm);
|
||||||
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
|
Binary file not shown.
@ -13,7 +13,7 @@ object SimpleTextViewerFrm: TSimpleTextViewerFrm
|
|||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '2.0.1.0'
|
LCLVersion = '4.0.0.4'
|
||||||
object Memo1: TMemo
|
object Memo1: TMemo
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 572
|
Height = 572
|
||||||
|
@ -5,14 +5,8 @@ unit uSimpleTextViewer;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls;
|
Controls, Forms, Dialogs, StdCtrls;
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TSimpleTextViewerFrm = class(TForm)
|
TSimpleTextViewerFrm = class(TForm)
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,21 +5,15 @@ program JSExecutingFunctions;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSExecutingFunctions in 'uJSExecutingFunctions.pas' {JSExecutingFunctionsFrm},
|
uJSExecutingFunctions in 'uJSExecutingFunctions.pas' {JSExecutingFunctionsFrm},
|
||||||
uMyV8Handler in 'uMyV8Handler.pas';
|
uMyV8Handler in 'uMyV8Handler.pas';
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -31,9 +25,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSExecutingFunctionsFrm, JSExecutingFunctionsFrm);
|
Application.CreateForm(TJSExecutingFunctionsFrm, JSExecutingFunctionsFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,11 +10,12 @@ object JSExecutingFunctionsFrm: TJSExecutingFunctionsFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes,
|
||||||
uCEFConstants, uCEFv8Value, uCEFWinControl;
|
uCEFConstants, uCEFv8Value, uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,22 +5,16 @@ program JSExtension;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSExtension in 'uJSExtension.pas' {JSExtensionFrm},
|
uJSExtension in 'uJSExtension.pas' {JSExtensionFrm},
|
||||||
uTestExtensionHandler in 'uTestExtensionHandler.pas',
|
uTestExtensionHandler in 'uTestExtensionHandler.pas',
|
||||||
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -32,9 +26,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSExtensionFrm, JSExtensionFrm);
|
Application.CreateForm(TJSExtensionFrm, JSExtensionFrm);
|
||||||
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
Application.CreateForm(TSimpleTextViewerFrm, SimpleTextViewerFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSExtensionFrm: TJSExtensionFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ object SimpleTextViewerFrm: TSimpleTextViewerFrm
|
|||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '2.0.1.0'
|
LCLVersion = '4.0.0.4'
|
||||||
object Memo1: TMemo
|
object Memo1: TMemo
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 572
|
Height = 572
|
||||||
|
@ -5,14 +5,8 @@ unit uSimpleTextViewer;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls;
|
Controls, Forms, Dialogs, StdCtrls;
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TSimpleTextViewerFrm = class(TForm)
|
TSimpleTextViewerFrm = class(TForm)
|
||||||
|
@ -7,11 +7,7 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages,
|
LCLIntf, LCLType, LMessages,
|
||||||
{$ENDIF}
|
|
||||||
uCEFRenderProcessHandler, uCEFBrowserProcessHandler, uCEFInterfaces, uCEFProcessMessage,
|
uCEFRenderProcessHandler, uCEFBrowserProcessHandler, uCEFInterfaces, uCEFProcessMessage,
|
||||||
uCEFv8Context, uCEFTypes, uCEFv8Handler;
|
uCEFv8Context, uCEFTypes, uCEFv8Handler;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -10,10 +10,8 @@ uses
|
|||||||
uJSExtension in 'uJSExtension.pas' {JSExtensionFrm},
|
uJSExtension in 'uJSExtension.pas' {JSExtensionFrm},
|
||||||
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
uSimpleTextViewer in 'uSimpleTextViewer.pas' {SimpleTextViewerFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSExtensionFrm: TJSExtensionFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ object SimpleTextViewerFrm: TSimpleTextViewerFrm
|
|||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '2.0.1.0'
|
LCLVersion = '4.0.0.4'
|
||||||
object Memo1: TMemo
|
object Memo1: TMemo
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 572
|
Height = 572
|
||||||
|
@ -5,14 +5,8 @@ unit uSimpleTextViewer;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls;
|
Controls, Forms, Dialogs, StdCtrls;
|
||||||
{$ENDIF}
|
|
||||||
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TSimpleTextViewerFrm = class(TForm)
|
TSimpleTextViewerFrm = class(TForm)
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,21 +5,15 @@ program JSExtensionWithFunction;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSExtensionWithFunction in 'uJSExtensionWithFunction.pas' {JSExtensionWithFunctionFrm},
|
uJSExtensionWithFunction in 'uJSExtensionWithFunction.pas' {JSExtensionWithFunctionFrm},
|
||||||
uMyV8Handler in 'uMyV8Handler.pas';
|
uMyV8Handler in 'uMyV8Handler.pas';
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -31,9 +25,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSExtensionWithFunctionFrm, JSExtensionWithFunctionFrm);
|
Application.CreateForm(TJSExtensionWithFunctionFrm, JSExtensionWithFunctionFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSExtensionWithFunctionFrm: TJSExtensionWithFunctionFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,21 +5,15 @@ program JSExtensionWithObjectParameter;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSExtensionWithObjectParameter in 'uJSExtensionWithObjectParameter.pas' {JSExtensionWithObjectParameterFrm},
|
uJSExtensionWithObjectParameter in 'uJSExtensionWithObjectParameter.pas' {JSExtensionWithObjectParameterFrm},
|
||||||
uMyV8Handler in 'uMyV8Handler.pas';
|
uMyV8Handler in 'uMyV8Handler.pas';
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -31,9 +25,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSExtensionWithObjectParameterFrm, JSExtensionWithObjectParameterFrm);
|
Application.CreateForm(TJSExtensionWithObjectParameterFrm, JSExtensionWithObjectParameterFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSExtensionWithObjectParameterFrm: TJSExtensionWithObjectParameterFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes>
|
<BuildModes>
|
||||||
<Item Name="Default" Default="True"/>
|
<Item Name="Default" Default="True"/>
|
||||||
|
@ -6,14 +6,13 @@ program JSSharedMemoryProcMessage;
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uMainForm in 'uMainForm.pas' {MainForm};
|
uMainForm in 'uMainForm.pas' {MainForm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -24,8 +23,6 @@ begin
|
|||||||
|
|
||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
//ReportMemoryLeaksOnShutdown := True;
|
|
||||||
|
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.MainFormOnTaskbar := True;
|
Application.MainFormOnTaskbar := True;
|
||||||
Application.CreateForm(TMainForm, MainForm);
|
Application.CreateForm(TMainForm, MainForm);
|
||||||
|
Binary file not shown.
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,20 +5,14 @@ program JSSimpleExtension;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSSimpleExtension in 'uJSSimpleExtension.pas' {JSSimpleExtensionFrm};
|
uJSSimpleExtension in 'uJSSimpleExtension.pas' {JSSimpleExtensionFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -30,9 +24,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSSimpleExtensionFrm, JSSimpleExtensionFrm);
|
Application.CreateForm(TJSSimpleExtensionFrm, JSSimpleExtensionFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSSimpleExtensionFrm: TJSSimpleExtensionFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,20 +5,14 @@ program JSSimpleWindowBinding;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSSimpleWindowBinding in 'uJSSimpleWindowBinding.pas' {JSSimpleWindowBindingFrm};
|
uJSSimpleWindowBinding in 'uJSSimpleWindowBinding.pas' {JSSimpleWindowBindingFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -30,9 +24,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSSimpleWindowBindingFrm, JSSimpleWindowBindingFrm);
|
Application.CreateForm(TJSSimpleWindowBindingFrm, JSSimpleWindowBindingFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSSimpleWindowBindingFrm: TJSSimpleWindowBindingFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes,
|
||||||
uCEFConstants, uCEFv8Value, uCEFWinControl;
|
uCEFConstants, uCEFv8Value, uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -6,14 +6,13 @@ program JSSimpleWindowBinding;
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSSimpleWindowBinding in 'uJSSimpleWindowBinding.pas' {JSSimpleWindowBindingFrm};
|
uJSSimpleWindowBinding in 'uJSSimpleWindowBinding.pas' {JSSimpleWindowBindingFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -35,9 +34,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSSimpleWindowBindingFrm, JSSimpleWindowBindingFrm);
|
Application.CreateForm(TJSSimpleWindowBindingFrm, JSSimpleWindowBindingFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -5,18 +5,14 @@ program SubProcess;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Forms, Interfaces,
|
LCLIntf, LCLType, LMessages, Forms, Interfaces,
|
||||||
{$ENDIF}
|
|
||||||
uCEFApplicationCore,
|
uCEFApplicationCore,
|
||||||
uCEFConstants,
|
uCEFConstants,
|
||||||
uCEFv8Value,
|
uCEFv8Value,
|
||||||
uCEFInterfaces;
|
uCEFInterfaces;
|
||||||
|
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
{$SetPEFlags $20}
|
{$IFDEF WIN32}{$SetPEFlags $20}{$ENDIF}
|
||||||
|
|
||||||
procedure GlobalCEFApp_OnContextCreated(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context);
|
procedure GlobalCEFApp_OnContextCreated(const browser: ICefBrowser; const frame: ICefFrame; const context: ICefv8Context);
|
||||||
var
|
var
|
||||||
|
@ -10,10 +10,11 @@ object JSSimpleWindowBindingFrm: TJSSimpleWindowBindingFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes,
|
||||||
uCEFConstants, uCEFv8Value, uCEFWinControl;
|
uCEFConstants, uCEFv8Value, uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,20 +5,14 @@ program JSWindowBindingWithArrayBuffer;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSWindowBindingWithArrayBuffer in 'uJSWindowBindingWithArrayBuffer.pas' {JSWindowBindingWithArrayBufferFrm};
|
uJSWindowBindingWithArrayBuffer in 'uJSWindowBindingWithArrayBuffer.pas' {JSWindowBindingWithArrayBufferFrm};
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -30,11 +24,8 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSWindowBindingWithArrayBufferFrm, JSWindowBindingWithArrayBufferFrm);
|
Application.CreateForm(TJSWindowBindingWithArrayBufferFrm, JSWindowBindingWithArrayBufferFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
DestroyGlobalCEFApp;
|
DestroyGlobalCEFApp;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSWindowBindingWithArrayBufferFrm: TJSWindowBindingWithArrayBufferFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 20
|
Height = 20
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,21 +5,15 @@ program JSWindowBindingWithFunction;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSWindowBindingWithFunction in 'uJSWindowBindingWithFunction.pas' {JSWindowBindingWithFunctionFrm},
|
uJSWindowBindingWithFunction in 'uJSWindowBindingWithFunction.pas' {JSWindowBindingWithFunctionFrm},
|
||||||
uMyV8Handler in 'uMyV8Handler.pas';
|
uMyV8Handler in 'uMyV8Handler.pas';
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -31,9 +25,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSWindowBindingWithFunctionFrm, JSWindowBindingWithFunctionFrm);
|
Application.CreateForm(TJSWindowBindingWithFunctionFrm, JSWindowBindingWithFunctionFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSWindowBindingWithFunctionFrm: TJSWindowBindingWithFunctionFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
@ -7,13 +7,8 @@
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
|
|
||||||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.ComCtrls,
|
|
||||||
{$ELSE}
|
|
||||||
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
LCLIntf, LCLType, LMessages, Messages, SysUtils, Variants, Classes, Graphics,
|
||||||
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ComCtrls,
|
||||||
{$ENDIF}
|
|
||||||
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
uCEFChromium, uCEFWindowParent, uCEFInterfaces, uCEFApplication, uCEFTypes, uCEFConstants,
|
||||||
uCEFWinControl;
|
uCEFWinControl;
|
||||||
|
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<UseAppBundle Value="False"/>
|
<UseAppBundle Value="False"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
|
<XPManifest>
|
||||||
|
<DpiAware Value="True/PM_V2"/>
|
||||||
|
</XPManifest>
|
||||||
</General>
|
</General>
|
||||||
<BuildModes Count="1">
|
<BuildModes Count="1">
|
||||||
<Item1 Name="Default" Default="True"/>
|
<Item1 Name="Default" Default="True"/>
|
||||||
|
@ -5,21 +5,15 @@ program JSWindowBindingWithObject;
|
|||||||
{$I ..\..\..\..\source\cef.inc}
|
{$I ..\..\..\..\source\cef.inc}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF DELPHI16_UP}
|
|
||||||
Vcl.Forms,
|
|
||||||
WinApi.Windows,
|
|
||||||
{$ELSE}
|
|
||||||
Forms,
|
Forms,
|
||||||
LCLIntf, LCLType, LMessages, Interfaces,
|
Windows,
|
||||||
{$ENDIF }
|
Interfaces,
|
||||||
uCEFApplication,
|
uCEFApplication,
|
||||||
uJSWindowBindingWithObject in 'uJSWindowBindingWithObject.pas' {JSWindowBindingWithObjectFrm},
|
uJSWindowBindingWithObject in 'uJSWindowBindingWithObject.pas' {JSWindowBindingWithObjectFrm},
|
||||||
uMyV8Accessor in 'uMyV8Accessor.pas';
|
uMyV8Accessor in 'uMyV8Accessor.pas';
|
||||||
|
|
||||||
{.$R *.res}
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
||||||
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
||||||
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
||||||
{$SetPEFlags $20}
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
@ -31,9 +25,6 @@ begin
|
|||||||
if GlobalCEFApp.StartMainProcess then
|
if GlobalCEFApp.StartMainProcess then
|
||||||
begin
|
begin
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
{$IFDEF DELPHI11_UP}
|
|
||||||
Application.MainFormOnTaskbar := True;
|
|
||||||
{$ENDIF}
|
|
||||||
Application.CreateForm(TJSWindowBindingWithObjectFrm, JSWindowBindingWithObjectFrm);
|
Application.CreateForm(TJSWindowBindingWithObjectFrm, JSWindowBindingWithObjectFrm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end;
|
end;
|
||||||
|
Binary file not shown.
@ -10,10 +10,11 @@ object JSWindowBindingWithObjectFrm: TJSWindowBindingWithObjectFrm
|
|||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
Font.Height = -11
|
Font.Height = -11
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
|
Position = poScreenCenter
|
||||||
|
LCLVersion = '4.0.0.4'
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
|
||||||
object NavControlPnl: TPanel
|
object NavControlPnl: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 21
|
Height = 21
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user