ShowDevTools - TFMXChromium

Post Reply
axa
Posts: 5
Joined: Tue May 07, 2019 9:25 pm

ShowDevTools - TFMXChromium

Post by axa » 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

User avatar
salvadordf
Posts: 1653
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: ShowDevTools - TFMXChromium

Post by salvadordf » Thu Jul 11, 2019 9:27 am

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:

thefunkyjoint
Posts: 155
Joined: Thu Aug 10, 2017 12:40 pm

Re: ShowDevTools - TFMXChromium

Post by thefunkyjoint » Thu Jul 11, 2019 12:14 pm

By the way... how can i show devtools on TChromium, i neved did this :D

User avatar
salvadordf
Posts: 1653
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: ShowDevTools - TFMXChromium

Post by salvadordf » Thu Jul 11, 2019 12:42 pm

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.

User avatar
salvadordf
Posts: 1653
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: ShowDevTools - TFMXChromium

Post by salvadordf » Thu Jul 18, 2019 10:19 am

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.

Post Reply