Delphi Chromium Embedded CEF3: inspect element


The TChromium object does not expose the "inspect element" item in the context menu but it is possible to select dom elements using the magnifying glass in the developer tool.

Feel free to post a comment if you know how to expose the "inspect element" item in the context menu.



Chromium Embedded (CEF3). How to resize new browser window?

Quick solution is to use SetWindowPos function instead of DeferWindowPos function.

//hdwp = DeferWindowPos(hdwp, hWndTab, NULL, 
//                      rect.left, rect.top, rect.right - rect.left, 
//                      rect.bottom - rect.top, SWP_NOZORDER);
SetWindowPos(hWndTab, NULL, rect.left, rect.top, 
             rect.right - rect.left, rect.bottom - rect.top, 
             SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE);

fail to install chromium embedded on C++ Builder from Delphi files

You're installing the selected component into the IDE's default custom-component package. That package evidently makes reference to the TOutline component, but that component isn't defined in the package. Normally, TOutline is in the vclsmp package, so add vclsmp to your component package's requires list.

Preferably, use a different and more typical technique for installing the Chromium control. Instead of adding just one unit to the default custom-component package, install the ready-made package that comes with the Chromium component: Open the .dpk file corresponding to your Delphi version, compile it, and install it. If there isn't a package file for your product version, then simply add the four source files to a new package; use the existing .dpk files as examples.

Some of your troubles may be because the library was written to target later product versions than 2002's C++ Builder 6. For example, it seems to expect TThread to have a two-argument version of Synchronize and for there to be an AppEvnts unit. Simply deleting the things you don't have without understanding them isn't the way to fix that, especially when threads are involved.

All the source files reference cef.inc, which sets conditional defines according to the compiler version. If it doesn't recognize your compiler version, you'll have to edit it so that it sets the various version symbols and feature symbols to accurately describe your compilation environment.


Delphi Chromium Embedded - version of Chromium?

I'm not sure how you figure you have version 3.06 of Delphi Chromium Embedded. That project doesn't have version numbers.

Maybe you're looking at the binary downloads it last updated in October 2011, which are from revision 306 of the main Chromium Embedded Framework project. As of today, the latest revision of CEF is r1617; r306 is comparatively ancient.

Use DCEF3. It's an entirely separate project from Delphi Chromium Embedded. According to the DCEF3 commit history, the latest Chromium Embedded Framework release it supports is 3.1547.1412, which corresponds to Chromium 29.0.1547.59, and which you can download from cefbuilds.com. That's DCEF3 revision e319b4a6fbe2.

You need to read your project names and revision numbers carefully.


Chromium Embedded: How to scale a website to account for higher DPI (CEF3)

Zoom and scale are different things as you already noticed. I think this is the formula you are looking for:

    public void SetScaleFactor(double scale)
    {
        double zoomLevel = Math.Log(scale, 1.2);
        this._browserHost.SetZoomLevel(zoomLevel);
    }

You can give it a try and see the difference with zoom.

Good luck!


DCEF3 - Delphi Chromium Embedded - communication between Javascript and application code

There is a guiclient demo if official source code to do this. Look at main.pas file.

The code below is a class extension :

class function TTestExtension.hello: string;
begin
  Result := 'Hello from Delphi';
end;

The code below register the extension class :

TCefRTTIExtension.Register('app', TTestExtension);

The code below call your native code from a HTML page :

<script>
alert ( app.hello() );
</script>

The code below call your native code from embedded browser :

crm.Browser.MainFrame.ExecuteJavaScript('alert (
app.hello() );', 'about:blank', 0);

Delphi Chromium Embedded CEF3: inspect element

The TChromium object does not expose the "inspect element" item in the context menu but it is possible to select dom elements using the magnifying glass in the developer tool.

Feel free to post a comment if you know how to expose the "inspect element" item in the context menu.



- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow