Page 1 of 1
how to set the popup window to back in PopupBrowser demo
Posted: Sat Aug 24, 2024 12:17 pm
by bobpang
In popupBrowser demo, if you opend a window ,How to display the newly opened form at the back when clicking on the main form.
Re: how to set the popup window to back in PopupBrowser demo
Posted: Sun Aug 25, 2024 4:36 pm
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.
Re: how to set the popup window to back in PopupBrowser demo
Posted: Mon Aug 26, 2024 10:15 am
by bobpang
It doesn't work my bro, can you try it with PopupBrowser demo
Re: how to set the popup window to back in PopupBrowser demo
Posted: Tue Aug 27, 2024 8:13 am
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.