mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2026-06-13 16:05:40 +02:00
Url Dropdown
Fix Caption for ExternalPumpBrowser Fix Windows IFDEF
This commit is contained in:
@@ -32,12 +32,33 @@ object Form1: TForm1
|
|||||||
OnClick = GoBtnClick
|
OnClick = GoBtnClick
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
object AddressEdt: TEdit
|
object AddressEdt: TComboBox
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 23
|
Height = 21
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 932
|
Width = 932
|
||||||
Align = alClient
|
Align = alClient
|
||||||
|
ItemHeight = 13
|
||||||
|
ItemIndex = 0
|
||||||
|
Items.Strings = (
|
||||||
|
'https://www.google.com'
|
||||||
|
'https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending'
|
||||||
|
'https://www.w3schools.com/js/tryit.asp?filename=tryjs_win_close'
|
||||||
|
'https://www.w3schools.com/html/html5_video.asp'
|
||||||
|
'http://www.adobe.com/software/flash/about/'
|
||||||
|
'http://isflashinstalled.com/'
|
||||||
|
'chrome://version/'
|
||||||
|
'http://html5test.com/'
|
||||||
|
'https://www.w3schools.com/'
|
||||||
|
'http://webglsamples.org/'
|
||||||
|
'https://get.webgl.org/'
|
||||||
|
'https://www.youtube.com'
|
||||||
|
'https://html5demos.com/drag/'
|
||||||
|
'https://developers.google.com/maps/documentation/javascript/examples/streetview-embed?hl=fr'
|
||||||
|
'https://www.w3schools.com/Tags/tryit.asp?filename=tryhtml_iframe_name'
|
||||||
|
'https://www.browserleaks.com/webrtc'
|
||||||
|
'https://frames-per-second.appspot.com/'
|
||||||
|
)
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
Text = 'https://www.google.com'
|
Text = 'https://www.google.com'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ type
|
|||||||
{ TForm1 }
|
{ TForm1 }
|
||||||
|
|
||||||
TForm1 = class(TForm)
|
TForm1 = class(TForm)
|
||||||
AddressEdt: TEdit;
|
AddressEdt: TComboBox;
|
||||||
CEFLinkedWindowParent1: TCEFLinkedWindowParent;
|
CEFLinkedWindowParent1: TCEFLinkedWindowParent;
|
||||||
GoBtn: TButton;
|
GoBtn: TButton;
|
||||||
Chromium1: TChromium;
|
Chromium1: TChromium;
|
||||||
@@ -86,8 +86,10 @@ type
|
|||||||
procedure WMMove(var Message: TLMMove); message LM_MOVE;
|
procedure WMMove(var Message: TLMMove); message LM_MOVE;
|
||||||
procedure WMSize(var Message: TLMSize); message LM_SIZE;
|
procedure WMSize(var Message: TLMSize); message LM_SIZE;
|
||||||
procedure WMWindowPosChanged(var Message: TLMWindowPosChanged); message LM_WINDOWPOSCHANGED;
|
procedure WMWindowPosChanged(var Message: TLMWindowPosChanged); message LM_WINDOWPOSCHANGED;
|
||||||
|
{$IFDEF WINDOWS}
|
||||||
procedure WMEnterMenuLoop(var aMessage: TMessage); message WM_ENTERMENULOOP;
|
procedure WMEnterMenuLoop(var aMessage: TMessage); message WM_ENTERMENULOOP;
|
||||||
procedure WMExitMenuLoop(var aMessage: TMessage); message WM_EXITMENULOOP;
|
procedure WMExitMenuLoop(var aMessage: TMessage); message WM_EXITMENULOOP;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
procedure SendCompMessage(aMsg : cardinal);
|
procedure SendCompMessage(aMsg : cardinal);
|
||||||
|
|
||||||
@@ -235,7 +237,7 @@ end;
|
|||||||
|
|
||||||
procedure TForm1.BrowserCreatedMsg(Data: PtrInt);
|
procedure TForm1.BrowserCreatedMsg(Data: PtrInt);
|
||||||
begin
|
begin
|
||||||
Caption := 'Simple Browser 2';
|
Caption := 'External-Pump Browser 2';
|
||||||
AddressPnl.Enabled := True;
|
AddressPnl.Enabled := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@@ -275,6 +277,7 @@ begin
|
|||||||
Chromium1.NotifyMoveOrResizeStarted;
|
Chromium1.NotifyMoveOrResizeStarted;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFDEF WINDOWS}
|
||||||
procedure TForm1.WMEnterMenuLoop(var aMessage: TMessage);
|
procedure TForm1.WMEnterMenuLoop(var aMessage: TMessage);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@@ -288,6 +291,7 @@ begin
|
|||||||
|
|
||||||
if (aMessage.wParam = 0) and (GlobalCEFApp <> nil) then GlobalCEFApp.OsmodalLoop := False;
|
if (aMessage.wParam = 0) and (GlobalCEFApp <> nil) then GlobalCEFApp.OsmodalLoop := False;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
if GlobalCEFApp = nil then begin
|
if GlobalCEFApp = nil then begin
|
||||||
|
|||||||
Reference in New Issue
Block a user