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.

ShowDevTools - TFMXChromium

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

ShowDevTools - TFMXChromium

Post 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
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: ShowDevTools - TFMXChromium

Post 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:
thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

Re: ShowDevTools - TFMXChromium

Post by thefunkyjoint »

By the way... how can i show devtools on TChromium, i neved did this :D
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: ShowDevTools - TFMXChromium

Post 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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: ShowDevTools - TFMXChromium

Post 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.
Post Reply