Page 1 of 1

Re: TTestExtension + ShowDevTools

Posted: Wed Jul 19, 2017 1:57 pm
by salvadordf
Hi,

The MiniBrowser demo has an example that shows the DevTools. It's in the TMiniBrowserFrm.ShowDevTools function which calls TChromium.ShowDevTools.

The code in TChromium.ShowDevTools checks the TWinControl parameter to use an existing TCEFWindowParent or to create a popup wnidow with the devtools.

If you don't want to inspect any html element, initialize the TPoint parameter like this :
TempPoint.x := low(integer);
TempPoint.y := low(integer);

Re: TTestExtension + ShowDevTools

Posted: Wed Jul 19, 2017 2:11 pm
by salvadordf
I forgot to add that you may need to send a message to show the DevTools if you do that from an extension.

The MiniBroser demo sends a customized message (MINIBROWSER_SHOWDEVTOOLS) to make sure all components are created in the main thread.