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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

how to set the popup window to back in PopupBrowser demo

Post Reply
bobpang
Posts: 21
Joined: Fri Feb 14, 2020 2:38 pm

how to set the popup window to back in PopupBrowser demo

Post by bobpang »

Image

In popupBrowser demo, if you opend a window ,How to display the newly opened form at the back when clicking on the main form.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: how to set the popup window to back in PopupBrowser demo

Post by salvadordf »

It's been a while since the last time I checked this but CEF browsers used to get the focus automatically.

Try setting TChromiumCore.DefaultWindowInfoExStyle to WS_EX_NOACTIVATE before creating the browsers.
bobpang
Posts: 21
Joined: Fri Feb 14, 2020 2:38 pm

Re: how to set the popup window to back in PopupBrowser demo

Post by bobpang »

It doesn't work my bro, can you try it with PopupBrowser demo
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: how to set the popup window to back in PopupBrowser demo

Post by salvadordf »

Chromium has some focus issues and it can be tricky to avoid them. Use a browser in OSR mode to have full control over the application.
Post Reply