Hi,
After adding the DevTools view to my form using the ShowDevTools function, teh DevTools view is not auto resizing. Can you please inform me what to do?
Cheers!
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.
DevTools vs resizing
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: DevTools vs resizing
Hi Pieter,
In the latest CEF4Delphi version the TCEFWindowParent used to show the DevTools is a subclass of TCEFWinControl which overrides the "Resize" procedure to call "UpdateSize".
Check that the UpdateSize procedure is called when the form is resized. If you show the DevTools next to the browser contents which also uses a TCEFWindowParent then UpdateSize should called 2 times : 1 for the browser and 1 for the DevTools.
The MiniBrowser demo has all the code to show the DevTools.
In the latest CEF4Delphi version the TCEFWindowParent used to show the DevTools is a subclass of TCEFWinControl which overrides the "Resize" procedure to call "UpdateSize".
Check that the UpdateSize procedure is called when the form is resized. If you show the DevTools next to the browser contents which also uses a TCEFWindowParent then UpdateSize should called 2 times : 1 for the browser and 1 for the DevTools.
The MiniBrowser demo has all the code to show the DevTools.