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.

Focus in Target Blank

Post Reply
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Focus in Target Blank

Post by salvadordf »

Hi,

Those popup windows are created automatically by CEF. They are not Delphi forms and you'll need to use the Windows API to handle them.

Try these functions to get the handle of the new child window : GetActiveWindow, GetForegroundWindow or EnumChildWindows.
Then send a WM_SETFOCUS message to that window to set the focus.
Post Reply