Hello to all! I would like to create a new popup window in my own window. What is this for? I want the pop-up window to open on my own, because I use tabs, and I would like to restrict the pop-up window. As an example, you can take the site https://badoo.com/ru/signin/ , by going to that and clicking on the button "Vkontakte" or "Facebook", a new popup window will be created. I tried to solve this problem through the BeforePopup event, but to no avail. Sample code:
myHandle:HWND; ... myHandle:= findwindow(nil, 'Wrapper'); ... procedure TChromium_wrapper.BeforePopup(Sender: TObject; const browser: ICefBrowser; const frame: ICefFrame; const targetUrl, targetFrameName: ustring; var popupFeatures: TCefPopupFeatures; var windowInfo: TCefWindowInfo; var client: ICefClient; var settings: TCefBrowserSettings; var noJavascriptAccess: Boolean; out Result: Boolean); begin windowInfo.window := myHandle; end; I cannot create a new browser because this popup window is associated with the current browser. Can someone help me?