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.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
New window
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: New window
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*)
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*)