I have CefWindowParent locked inside dxDockPanel.
When I double click the dxDockPanel or try to move it to another position, the program quits (closing).
What would be the reason?
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.
Problem with DevExpress components
- salvadordf
- Posts: 4579
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Problem with DevExpress components
Hi,
CefWindowParent is the parent control of some "windows" (using the Windows API term) created by CEF.
If those child "windows" are destroyed then CEF thinks the application is closing and it starts shutting down the browser. In that situation, CEF may send a WM_CLOSE to the parent form.
Use the TChromium.OnClose event and set the aAction to cbaCancel to cancel the browser destruction while the user performs those actions with dxDockPanel.
If that's not possible then try calling TChromium.SetNewBrowserParent to a hidden TCEFWindowParent before you dock/undock the browser. When dock/undock is finished then call TChromium.SetNewBrowserParent again to the old TCEFWindowParent component.
CefWindowParent is the parent control of some "windows" (using the Windows API term) created by CEF.
If those child "windows" are destroyed then CEF thinks the application is closing and it starts shutting down the browser. In that situation, CEF may send a WM_CLOSE to the parent form.
Use the TChromium.OnClose event and set the aAction to cbaCancel to cancel the browser destruction while the user performs those actions with dxDockPanel.
If that's not possible then try calling TChromium.SetNewBrowserParent to a hidden TCEFWindowParent before you dock/undock the browser. When dock/undock is finished then call TChromium.SetNewBrowserParent again to the old TCEFWindowParent component.