Hi,
Try calling TChromium.SetNewBrowserParent to a hidden TCEFWindowParent before you change the form's parent.
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.
uCEFLifespanHandler OnBeforeClose
- salvadordf
- Posts: 4565
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
- salvadordf
- Posts: 4565
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: uCEFLifespanHandler OnBeforeClose
Hi,
Try using the TForm.OnCloseQuery event or overriding the TCustomForm.CloseQuery function to set the new parent before the form is destroyed.
Try using the TForm.OnCloseQuery event or overriding the TCustomForm.CloseQuery function to set the new parent before the form is destroyed.