How to creating a popup in my own window

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to creating a popup in my own window

Postby Winexcel » Wed Sep 14, 2016 11:44 am

Hi, I have a problem, I want to create a new popup window in my own window. Why is it? I want that new popup window will be open in my own window because I would like use only tab without popup window.
Example: https://badoo.com/ru/signin/
if we'll click on the button "Vkontakte" or "Facebook" after that new popup window will be create. I want to do that new popup window will be open in my own tab.
I tried to do it in event "BeforePopup" but my way doesn't work. Example:
Code: Select all
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 can't create new browser because this popup window binding with current browser(ICefBrowser).Anybody can help me in this trouble?
Winexcel
Newbie
 
Posts: 3
Joined: Wed Sep 14, 2016 11:39 am

Re: How to creating a popup in my own window

Postby magreenblatt » Wed Sep 14, 2016 2:27 pm

It looks like you're using a Delphi wrapper. You should ask questions on a forum appropriate to that wrapper.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to creating a popup in my own window

Postby Winexcel » Wed Sep 14, 2016 8:10 pm

It isn't a real wrapper. It's only name. I use pure dcef3 without another addition.
Winexcel
Newbie
 
Posts: 3
Joined: Wed Sep 14, 2016 11:39 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 96 guests