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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

DevTools vs resizing

Post Reply
Pieter E.
Posts: 12
Joined: Thu Oct 19, 2017 2:47 pm

DevTools vs resizing

Post by Pieter E. »

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!
User avatar
salvadordf
Posts: 4564
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: DevTools vs resizing

Post by salvadordf »

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.
Post Reply