WebBrowser component not loading when hidden


#1

I’ve got a JUCE app that contains an embedded web browser component. I’d like to keep the main app window hidden until the browser loads its content. The problem is that when the window is hidden the browser (its child) never loads. Is there a way around this?


#2

I’m afraid not - it has to rely on the OS’s browser widget, and they don’t work until they’re actually showing.

Maybe you could try a trick like making the browser 1x1 pixel in size until it has loaded?


#3

Thanks. Turns out even 0x0 works as long as its visible–at least on Windows.


#4

Sorry to dig this up. The webbrowser component is loaded only when parent component is visible. It is something to do with ActiveX