I use TChromium
. I assign AWebPageAsString
which is a static HTML page with a gray background color.
FBrowser := TChromium.Create(pnlHolder);
FBrowser.Visible := false;
FBrowser.Parent := TWinControl(pnlHolder);
FBrowser.Align := alClient;
FBrowser.OnBeforeBrowse := BrowserBeforeBrowse;
FBrowser.HandleNeeded;
FBrowser.FontOptions.RemoteFontsDisabled := true;
FBrowser.Browser.MainFrame.LoadString(AWebPageAsString, 'navigate:webpage');
When I start the application it is displayed first with white background and empty content and then my page gets displayed with gray background and actual content.
Is there a way to avoid this ? Maybe have a default background color ?