Page 1 of 1

ShowDevTools - TFMXChromium

Posted: Thu Jul 11, 2019 8:50 am
by axa
Hi,

It is possible to view DevTools with TFMXChromium? and if yes how can I do that?
A simple code will be great to help me get started.

Thanks in advance

Re: ShowDevTools - TFMXChromium

Posted: Thu Jul 11, 2019 9:27 am
by salvadordf
Hi,

Perhaps it's possible to let CEF create a child form with the devtools.
I'll try to modify the SimpleFMXBrowser demo but I can't promise when I'll be able to do it... :oops:

Re: ShowDevTools - TFMXChromium

Posted: Thu Jul 11, 2019 12:14 pm
by thefunkyjoint
By the way... how can i show devtools on TChromium, i neved did this :D

Re: ShowDevTools - TFMXChromium

Posted: Thu Jul 11, 2019 12:42 pm
by salvadordf
In VCL apps it's relatively easy to show the DevTools. Just call TChromium.ShowDevTools with a couple of parameters :
  • A point in the browser to inspect
  • A TCEFWindowParent control to show the DevTools. This TCEFWindowParent control is different than the one used to show the browser.
The MiniBrowser has all the code to show and hide the DevTools in a VCL app.

Re: ShowDevTools - TFMXChromium

Posted: Thu Jul 18, 2019 10:19 am
by salvadordf
axa wrote: Thu Jul 11, 2019 8:50 am Hi,

It is possible to view DevTools with TFMXChromium? and if yes how can I do that?
A simple code will be great to help me get started.

Thanks in advance
Please, download CEF4Delphi again. SimpleFMXBrowser has a new menu option to show the DevTools in a child form.