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);
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.
TTestExtension + ShowDevTools
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: TTestExtension + ShowDevTools
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.
The MiniBroser demo sends a customized message (MINIBROWSER_SHOWDEVTOOLS) to make sure all components are created in the main thread.