What Delphi version do you have ?
Are you using a custom cache directory ?
Sorry but I only speak Spanish and English.
I understand most Italian but I only understand 40-60% of the words in other latin languages like French.
You can use the TabbedBrowser demo for that. You only need to make some minor modifications.turfbase wrote: ↑Wed Sep 27, 2017 12:12 pm I need the following option:
From the main form, I click on a button that opens another form where there is a TpageControl with 5 tabs and in each tab a browser.
The first tab must load in Flash mode the following address http://www.pmu.fr/turf/live-et-replay/
The second Tabs should load the address like this: https://www.pmu.fr/turf/27092017/R1/C1
The third tab must load the address as below: https: //www.zeturf.fr/fr/course/2017-09-27/R6C1 ... osque/turf
the 4th and 5th will be a later choice.
I must be able to modify by program, to me to realize, the addresses of Tabs 2 to 5.
The addresses will be loaded when the form is created or OnShow. They can be changed by me by program.
- Replace GlobalCEFApp.FlashEnabled := False; by GlobalCEFApp.FlashEnabled := True; in the DPR file.
- Delete the button bar but keep the TMainForm.AddTabBtnClick and TMainForm.RemoveTabBtnClick functions to add and remove all the tabs you want.
- Use TMainForm.BrowserCreatedMsg to load a custom URL for each tab using the TChromium.LoadURL procedure.
- Use the CloseQuery event in your main form to hide your app from the task bar and then close all the tabs following the destruction sequence described in the TabbedBrowser code comments. When all the tabs are destroyed you can send WM_CLOSE to your main form.