Page 1 of 1

New window

Posted: Mon Jun 11, 2018 6:34 pm
by Laertes
Good afternoon !

I'm working on a browser, but when I click on a button the website opens on another screen. Can you work on this new screen that opens the site?
Or some command to stay on the same theme.

Re: New window

Posted: Tue Jun 12, 2018 7:23 am
by salvadordf
Hi,

Use the TChromium.OnBeforePopup event to open the new URL in a new popup, the same browser or block it completely.

The PopupBrowser2 demo have the code to use custom forms for the new popup.
The SimpleBrowser2 demo has the code to block all new popup windows.

For more information about that event you can read the original CEF3 code comments here :
https://bitbucket.org/chromiumembedded/ ... _capi.h-63

or read the API web page :
http://magpcss.org/ceforum/apidocs3/pro ... gs&,bool*)