Setting containing parent to nil
Posted: Thu Jul 04, 2024 4:49 pm
Hi Salvador,
I'm trying a similar thing with WebView4Delphi. In the SimpleBrowser demo, I place the WVWindowParent on a Panel.
If I set the Panel.Parent := nil, and then afterwards set the Parent back to the Form (Panel.Parent := Self), the browser/WVWindowParent is no longer visible.
Is there a way around this? Or something to do before I set Panel.Parent to nil (e.g. "PauseRender"), so that after I reset the Parent to Form, then I can get the browser/WVWindowParent to re-render, or ResumeRender.
My existing application currently works with these steps, so I'm trying to get these steps to work with WebView.
Thanks
I'm trying a similar thing with WebView4Delphi. In the SimpleBrowser demo, I place the WVWindowParent on a Panel.
If I set the Panel.Parent := nil, and then afterwards set the Parent back to the Form (Panel.Parent := Self), the browser/WVWindowParent is no longer visible.
Is there a way around this? Or something to do before I set Panel.Parent to nil (e.g. "PauseRender"), so that after I reset the Parent to Form, then I can get the browser/WVWindowParent to re-render, or ResumeRender.
My existing application currently works with these steps, so I'm trying to get these steps to work with WebView.
Thanks