First of all, sorry for the long delay.
I only have a Delphi Community Edition license and I can't test Delphi 7.
I tried to reproduce this issue in Delphi 10.3 and Lazarus using the toolbox demos but I couldn't get the same results.
CEF also had some focus issues like this one :
https://bitbucket.org/chromiumembedded/ ... ser-window
It was fixed using a WS_EX_NOACTIVATE exstyle :
https://bitbucket.org/chromiumembedded/ ... ?at=master
I'm not sure if this is related to this issue but I would try to modify TChromium.InitializeWindowInfo and call WindowInfoAsChild with the aExStyle parameter :
Code: Select all
WindowInfoAsChild(FWindowInfo, aParentHandle, aParentRect, aWindowName, WS_EX_NOACTIVATE);