Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

how to replace the page

Post Reply
dilfich
Posts: 368
Joined: Thu Nov 30, 2017 1:17 am

Re: how to replace the page

Post by dilfich »

To handle the error in Chromium1LoadError not an option?
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: how to replace the page

Post by salvadordf »

Hi,

Load a custom URL in the TChromium.OnLoadError event. That URL can be :
  • A FILE URL to open a simple local HTML file. See the MiniBrowser demo to know how to use FILE URLs.
  • A URL with a custom scheme to show custom HTML. See the SchemeRegistrationBrowser demo to know how to register schemes.
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: how to replace the page

Post by salvadordf »

As far as I know, that's not possible to do with CEF. You would have to modify Chromium's code.
Post Reply