Page 1 of 1
Re: MultiBrowser on the same form problems
Posted: Sun Oct 07, 2018 9:16 pm
by salvadordf
Hi,
You can base your app in the MDIBrowser demo. It can open several browsers at the same time and they can have different proxy configurations if you create a different request context for each of them.
Read the code comments for more info.
Re: MultiBrowser on the same form problems
Posted: Tue Oct 09, 2018 8:50 am
by dilfich
Hi, salvadordf.
And you can still sample OSR browser as well as MDIBrowser? Without the visual part, just how to properly create and destroy multiple OSR in one application.
Re: MultiBrowser on the same form problems
Posted: Tue Oct 09, 2018 3:14 pm
by salvadordf
Right now I'm very busy but you can try to replace the child forms in the MDIBrowser demo with the main form in the SimpleOSRBrowser demo.
You would also need to adapt the destruction sequence in the previous child forms to the new OSR child forms.
Re: MultiBrowser on the same form problems
Posted: Wed Oct 10, 2018 6:00 am
by dilfich
I tried, but it's not exactly what you need. Form one, you need an example of simultaneous operation of several OSR browsers that for example open simultaneously different sites and save html code. No need to display the visual part. I create in the usual way "ChromOSR[Thrd]:= TChromium.Create (nil);" and I think it's wrong.

Re: MultiBrowser on the same form problems
Posted: Thu Oct 11, 2018 2:01 pm
by salvadordf
Use the TChromium.OnClose event and set the "Result" parameter to TRUE.
Re: MultiBrowser on the same form problems
Posted: Thu Oct 11, 2018 3:47 pm
by salvadordf
TChromium.CloseBrowser is asynchronous and you need to wait until the TChromium.OnClose event is triggered.
Perhaps the TabbedBrowser demo can be useful in your case. Each tabsheet has a browser and that demo has all the code necessary to close them correctly.