Re: TTestExtension + ShowDevTools
Posted: Wed Jul 19, 2017 1:57 pm
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);
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);