-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.main.pas
46 lines (36 loc) · 1016 Bytes
/
web.main.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
unit web.main;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, WebView2, Winapi.ActiveX, Vcl.Edge,
ChromeTabs;
type
TForm2 = class(TForm)
EdgeBrowser1: TEdgeBrowser;
ChromeTabs1: TChromeTabs;
procedure FormCreate(Sender: TObject);
procedure EdgeBrowser1CreateWebViewCompleted(Sender: TCustomEdgeBrowser;
AResult: HRESULT);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.EdgeBrowser1CreateWebViewCompleted(Sender: TCustomEdgeBrowser;
AResult: HRESULT);
var
a: Integer;
begin
// EdgeBrowser1.SettingsInterface.Get_AreRemoteObjectsAllowed(a);
// if a > 0 then
// ShowMessage('remote objects are allowed');
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
EdgeBrowser1.Navigate('http://localhost/dev/')
end;
end.