Page 1 of 1

Re: TChromiumWindow runtime

Posted: Wed Sep 06, 2017 8:19 pm
by salvadordf
Hi,

The CreateBrowser function is asynchronous and you have to wait until it's fully created to start loading URLs.
You have to implement the AfterCreate event in the internal TChromium to know when you can load a URL.

Most of the demos send a MINIBROWSER_CREATED message from the AfterCreate event to enable the interface and to load the initial webpage.

The AfterCreated event is called in the UI thread which is different than the main thread, and the VCL doesn't like to create/destroy components in different threads. That's why the demos send a MINIBROWSER_CREATED message to the main thread.