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.

TChromium Browser Reload/Refresh/Repaint

Post Reply
Christoph
Posts: 25
Joined: Fri Feb 23, 2018 6:31 am

TChromium Browser Reload/Refresh/Repaint

Post by Christoph »

Hello,

we use TChromium (DCEF4) with CEFWindowParent1 in a Delphi application.

So far, so good, but:

1) the form of TChromium + CEFWindowParent1 is a MDIChild
2) opening the form and loading an URL is fine
3) set focus to another MDIChild of the application
4) go back to the form of TChromium + CEFWindowParent1 is a MDIChild
5) the form of TChromium + CEFWindowParent1 is black

we can overcome the problem of the black form by using
TChromium1.Browser.Reload;
in the OnActivate event of the form, but if a user made some inputs in the page loaded in step 2,
the input(s) are gone after the TChromium1.Browser.Reload

We did try
CEFWindowParent1.UpdateSize;
without success...

Any idea to overcome this problem?

Thanks in advance!
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: TChromium Browser Reload/Refresh/Repaint

Post by salvadordf »

Thanks for the bug report!

I'll take a look as soon as I can but right now I'm very busy. :(
Christoph
Posts: 25
Joined: Fri Feb 23, 2018 6:31 am

Re: TChromium Browser Reload/Refresh/Repaint

Post by Christoph »

@apzloy: thank you very much, the DoubledBuffered property solved the problem (CEFWindowParent1.DoubleBuffered := False; in FormCreate). :D
Post Reply