You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-08-04 21:32:54 +02:00
Update to CEF 128.4.8
This commit is contained in:
@ -9,7 +9,7 @@ object Form1: TForm1
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '2.2.6.0'
|
||||
LCLVersion = '3.4.0.0'
|
||||
object AddressPnl: TPanel
|
||||
Left = 0
|
||||
Height = 23
|
||||
@ -27,16 +27,16 @@ object Form1: TForm1
|
||||
Width = 35
|
||||
Align = alRight
|
||||
Caption = 'Go'
|
||||
OnClick = GoBtnClick
|
||||
TabOrder = 0
|
||||
OnClick = GoBtnClick
|
||||
end
|
||||
object AddressEdt: TComboBox
|
||||
Left = 0
|
||||
Height = 24
|
||||
Height = 23
|
||||
Top = 0
|
||||
Width = 932
|
||||
Align = alClient
|
||||
ItemHeight = 16
|
||||
ItemHeight = 15
|
||||
ItemIndex = 0
|
||||
Items.Strings = (
|
||||
'https://www.google.com'
|
||||
|
@ -139,6 +139,7 @@ end;
|
||||
|
||||
procedure TForm1.FormCreate(Sender: TObject);
|
||||
begin
|
||||
BrowserWindow1.Chromium.RuntimeStyle := CEF_RUNTIME_STYLE_ALLOY;
|
||||
BrowserWindow1.LoadURL(UTF8Decode(AddressEdt.Text));
|
||||
end;
|
||||
|
||||
|
@ -193,7 +193,7 @@ begin
|
||||
BrowserWindow1.Chromium.OnBeforeContextMenu := @DoBeforeContextMenu;
|
||||
BrowserWindow1.Chromium.OnContextMenuCommand := @DoContextMenuCmd;
|
||||
BrowserWindow1.Chromium.OnProcessMessageReceived := @DoProcessMessageReceived;
|
||||
|
||||
BrowserWindow1.Chromium.RuntimeStyle := CEF_RUNTIME_STYLE_ALLOY;
|
||||
BrowserWindow1.LoadURL(UTF8Decode(AddressEdt.Text));
|
||||
end;
|
||||
|
||||
|
@ -9,7 +9,7 @@ object Form1: TForm1
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '2.2.6.0'
|
||||
LCLVersion = '3.4.0.0'
|
||||
object PanelLeft: TPanel
|
||||
Left = 0
|
||||
Height = 556
|
||||
@ -37,16 +37,16 @@ object Form1: TForm1
|
||||
Width = 35
|
||||
Align = alRight
|
||||
Caption = 'Go'
|
||||
OnClick = GoBtnLeftClick
|
||||
TabOrder = 0
|
||||
OnClick = GoBtnLeftClick
|
||||
end
|
||||
object AddressEdtLeft: TComboBox
|
||||
Left = 0
|
||||
Height = 24
|
||||
Height = 23
|
||||
Top = 0
|
||||
Width = 424
|
||||
Align = alClient
|
||||
ItemHeight = 16
|
||||
ItemHeight = 15
|
||||
ItemIndex = 0
|
||||
Items.Strings = (
|
||||
'https://www.google.com'
|
||||
@ -127,16 +127,16 @@ object Form1: TForm1
|
||||
Width = 35
|
||||
Align = alRight
|
||||
Caption = 'Go'
|
||||
OnClick = GoBtnRightClick
|
||||
TabOrder = 0
|
||||
OnClick = GoBtnRightClick
|
||||
end
|
||||
object AddressEdtRight: TComboBox
|
||||
Left = 0
|
||||
Height = 24
|
||||
Height = 23
|
||||
Top = 0
|
||||
Width = 418
|
||||
Align = alClient
|
||||
ItemHeight = 16
|
||||
ItemHeight = 15
|
||||
ItemIndex = 0
|
||||
Items.Strings = (
|
||||
'https://www.google.com'
|
||||
@ -201,31 +201,31 @@ object Form1: TForm1
|
||||
ClientWidth = 967
|
||||
TabOrder = 3
|
||||
object BtnCloseApp: TButton
|
||||
Left = 5
|
||||
Height = 26
|
||||
Top = 3
|
||||
Left = 6
|
||||
Height = 25
|
||||
Top = 4
|
||||
Width = 80
|
||||
Caption = 'Close App'
|
||||
OnClick = BtnCloseAppClick
|
||||
TabOrder = 0
|
||||
OnClick = BtnCloseAppClick
|
||||
end
|
||||
object BtnCloseForm: TButton
|
||||
Left = 95
|
||||
Height = 26
|
||||
Top = 3
|
||||
Left = 96
|
||||
Height = 25
|
||||
Top = 4
|
||||
Width = 86
|
||||
Caption = 'Close Form'
|
||||
OnClick = BtnCloseFormClick
|
||||
TabOrder = 1
|
||||
OnClick = BtnCloseFormClick
|
||||
end
|
||||
object BtnModal: TButton
|
||||
Left = 191
|
||||
Height = 26
|
||||
Top = 3
|
||||
Width = 93
|
||||
Left = 192
|
||||
Height = 25
|
||||
Top = 4
|
||||
Width = 92
|
||||
Caption = 'Show Modal'
|
||||
OnClick = BtnModalClick
|
||||
TabOrder = 2
|
||||
OnClick = BtnModalClick
|
||||
end
|
||||
end
|
||||
object ImageList1: TImageList
|
||||
|
@ -120,7 +120,7 @@ begin
|
||||
FBrowserLeft.OnBrowserClosed := @LeftBrowserClosed;
|
||||
FBrowserLeft.Align := alClient;
|
||||
FBrowserLeft.Parent := PanelLeft;
|
||||
|
||||
FBrowserLeft.Chromium.RuntimeStyle := CEF_RUNTIME_STYLE_ALLOY;
|
||||
OpenBtnLeft.Enabled := False;
|
||||
GoBtnLeftClick(nil);
|
||||
end;
|
||||
@ -163,6 +163,7 @@ begin
|
||||
{$ENDIF}
|
||||
FBrowserRight.Align := alClient;
|
||||
FBrowserRight.Parent := PanelRight;
|
||||
FBrowserRight.Chromium.RuntimeStyle := CEF_RUNTIME_STYLE_ALLOY;
|
||||
|
||||
OpenBtnRight.Enabled := False;
|
||||
GoBtnRightClick(nil);
|
||||
|
@ -10,7 +10,7 @@ object Form1: TForm1
|
||||
OnCloseQuery = FormCloseQuery
|
||||
OnCreate = FormCreate
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '2.2.6.0'
|
||||
LCLVersion = '3.4.0.0'
|
||||
object AddressPnl: TPanel
|
||||
Left = 0
|
||||
Height = 23
|
||||
@ -29,16 +29,16 @@ object Form1: TForm1
|
||||
Width = 35
|
||||
Align = alRight
|
||||
Caption = 'Go'
|
||||
OnClick = GoBtnClick
|
||||
TabOrder = 0
|
||||
OnClick = GoBtnClick
|
||||
end
|
||||
object AddressEdt: TComboBox
|
||||
Left = 0
|
||||
Height = 24
|
||||
Height = 23
|
||||
Top = 0
|
||||
Width = 932
|
||||
Align = alClient
|
||||
ItemHeight = 16
|
||||
ItemHeight = 15
|
||||
ItemIndex = 0
|
||||
Items.Strings = (
|
||||
'https://www.google.com'
|
||||
|
@ -104,7 +104,7 @@ procedure TForm1.FormCreate(Sender: TObject);
|
||||
begin
|
||||
FCanClose := False;
|
||||
FClosing := False;
|
||||
|
||||
Chromium1.RuntimeStyle := CEF_RUNTIME_STYLE_ALLOY;
|
||||
Chromium1.DefaultURL := UTF8Decode(AddressEdt.Text);
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user