Page 1 of 1

shows focused form when loading URL

Posted: Wed Mar 14, 2018 5:31 pm
by snoop
Hello. I added recently another chromium browser to my program. I need it to work ' silently' - i have it outside of the form or just with visible=false. I need to monitor something while app is working. But when I load URL in that browser it shows/focuses my app on my screen... for example I work in another program and then my app bringing form to front. how can I avoid it? I never had that issue before, any ideas?

Re: shows focused form when loading URL

Posted: Wed Mar 14, 2018 6:12 pm
by salvadordf
Use TChromium.OnSetFocus and return TRUE.

If that doesn't work I would use a TChromium in OSR mode.