Web Browser Component For Delphi XE6 Firemonkey On Windows And Mac OSX

Delphi XE6 Firemonkey Chromium WebBrowserThe web browser control (TWebBrowser) that ships with Delphi XE6 Firemonkey only supports Android and IOS. If you want to use a web browser control in Firemonkey on Windows and Mac one option is the Chromium Embedded Framework (CEF). There are two different versions of the framework for Delphi which are Delphi CEF1 and Delphi CEF3. Both claim to support Firemonkey but I had to have an oDesk developer update CEF3 to support Delphi XE5 Firemonkey (and AppMethod) for me. It had to be modified a bit to run on XE6 and an architecture change was made to allow you to create TChromiumFMX at runtime. I have not tested it on Mac OSX but I believe it will also work there as there is a Mac library in the bin directory. When you use this TChromiumFMX component you will need to copy all of the files from the \cef_Chromium\bin\Win32 directory (or Win64) to whatever the final directory of your EXE file ends up being. You will also need to deploy all of these files with your application. I have two links below. The first one contains the MacOSX, Win32 and Win64 runtime files and the second download has no runtime files. If you already have the CEF3 file from Sourceforge or you have the XE5 version of this component you can download the second version. Here is some sample code for creating it at runtime:

Download TChromiumFMX for Delphi XE6 Firemonkey on Windows and Mac (70.2MB).

Download TChromiumFMX for Delphi XE6 Firemonkey on Windows and Mac without Runtime (106k).

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Web Browser Component For Delphi XE6 Firemonkey On Windows And Mac OSX by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

35 Responses to Web Browser Component For Delphi XE6 Firemonkey On Windows And Mac OSX

  1. tndelphifan says:

    This site is very good. I definitely view it everyday. Thanks for the frequent updates and contributions such as this!

  2. gside says:

    Thanks, excellent! Works fine except for some plugins that are not painted/displayed? (all plugins are loaded correctly but nothing is displayed when trying to load a pdf file). Same test case with vcl runs fine.

  3. andrea says:

    hi guys.. i have download this component but i can’t use it..
    i have to made a simple webbrowser but i need it also in Mac…

    i have installed this component but seem it does not work well….
    does not load all website…i see only a blank page.

    • Admin says:

      Does it work on Windows or Mac or neither? Do you have the correct library files in the same directory as the executable?

      • andrea says:

        hi.thanks a lot for reply.. i try to explain better.

        Now i successed to install component (i think)…
        i have made a little form with the component TchromiumFM and if i compile for windows seem ok…

        whwn i change the target and try to compile for MacOsx…. nothing to do… the compiler of delphi sais me that it cant found message.dcu… and windows.dcu….. but this dcu are used in windows…. or not?

        this dcu are declared in the file ceffmx..

        here is part of that code:
        as you can see..it call message.dcu, windows.dcu….

        unit ceffmx;

        {$I cef.inc}

        interface
        uses
        Messages, Windows, SysUtils, System.UITypes, Classes, FMX.Types, FMX.Platform, FMX.Controls,
        System.Types, ceflib, cefgui, FMX.Graphics, FMX.Forms, FMX.Dialogs;

  4. andrea says:

    Dear admin, thanks a lot for your help… it’s very glad..

    so..now i will try this conditional compiling….

    about tms software i have see and downloaded this component but….. the trial version of webbrowser does not work for windows… and if i try to compile for mac the compiler tell me some errors such as:

    [dccosx Fatal Error] Unit1.pas(8): F2051 Unit FMX.TMSWebBrowser.Mac was compiled with a different version of Macapi.ObjectiveC.TOCGenericImport`2.GetOCClass

    and not compile…..

    the osx on the mac is the last Maverick 10.9.1

    thanks a lot one more time 🙂

    • andrea says:

      nothing to do….. i try that file with conditional compile and i received more than 50 others error…so i trye to uninstall package and reinstall all with packega i found where you said me with that conditional compiling but when is installed i cant’ found chromiumFM component…

      oh my god.. i don’t know how to do this simple and stupid think…
      i need only a simple for with webbrowser that could work in mac…. seem a stupid think but i don’t know how to do….

      uffffff

      • Admin says:

        No, my version of ceffmx is modified from the original. You would have to merge in the conditional compilation from the file I linked. I don’t have Mac.

        The TMS Firemonkey Pack Browser just works.. just isn’t free. 😛

  5. andrea says:

    ya… but before to buy a compoment i’d like to try it… and i speak with tms team and he says that the trial webcomponent does not work… but only the full version…. i mean that they want to buy their product but…. hhow can i buy something if i dont know if it work??

    and another think… they said me that for mac also the trial componet work well…but i can’t neither compile it and they answer to me “the full version is ok”…. mmmmmm what have i to think?….. i have to make a simple simple think… spend more than 150 euro for this i think is too much….

    i will try thos we with chromium component but i have a lots of problem….

  6. andrea says:

    but noone knows another way to make this application?..^_^ there no other component such as firefox? or safari?…opera?

  7. andrea says:

    I HAVE FOUND THIS… but i dont understand nothing about it…

    http://delphimaniacs.blogspot.it/2013/12/firemonkey-twebbrowser-winmac.html

  8. sr says:

    hi,
    I have tried to create at run time like you said but I get this error:
    E2003 Undeclared identifier: ‘InitializeBrowser’
    anything I have done wrong?
    any library to use for that?
    thx.

    • sr says:

      sry forgot to delete the previous chromium version src path in delphi library options before adding the new version src path in library. I have deleted the old path and reinstalled the package and its fixed now.
      thanks.

  9. sr says:

    Hi.
    ok I can create the browser at run time now and it works fine. I only have one problem now if anyone can help, the right-click menues are not appearing for me. right clicking on anywhere on the page does not pop up any menu for me. anyone know how can I fix this ?
    Thanks.

  10. michael says:

    hi,
    i cant install this package “DCEF_XE5.dpk” in Delphi XE6. i get this error:
    [dcc32 Fataler Fehler] DCEF_XE5.dpk(39): F1026 Datei nicht gefunden: ‘C:\Program Files (x86)\Embarcadero\chromium\cef3_ChromiumXE6\packages\ceffmx.dcu’

    it means… this file is missing!

    and this line in the editor have red background:
    cefvcl in ‘..\src\cefvcl.pas’;

    how can i solve this?

  11. Mack says:

    I’m doing this in XE6. Why is this so hard? I can’t install anything without an error. bpl file? Whats the trick? Step by step..

    • Admin says:

      What is the error?

      • Mack says:

        I build DCEF_XE5.dpk. Then install it. It says Chromium in the packages. But when I pull up the Browser.pas from the demo it says
        Class TChromiumFMX not found. I know I’m doing something stupid. I just lost.

        • Mack says:

          I build DCEF_XE5.dpk. Then install it. It says Chromium in the packages. But when I pull up the Browser.pas from the demo it says
          Class TChromiumFMX not found. I know I’m doing something stupid. I just lost.
          When I get in packages and look at Chromuim and look at installed components nothing shows.. none of the stuff in cefreg.pas .. TChromium, TChromiumOSR, TChromiumFMX

  12. Mack says:

    it is … got that all working, I think .. now when I compile The browser demo program it says it can’t find ceffmx.dcu
    It has both ceffmx and ceflib underlined in red like it can’t find them..

  13. Mack says:

    it also underlines TChromiumFMX in the ChromiumFMX1: TChromiumFMX; line under type

  14. Mack says:

    Ok, I got it running.. still way too hard to do..but working well, really like it.. Thanks .. mack

  15. Pingback: Extended Web Browser Control Based On IE And WebKit For Delphi XE7 Firemonkey On Windows And OSX | Delphi XE5 XE6 XE7 Firemonkey, Delphi Android, Delphi IOS

  16. Challey says:

    Thanks, very much!
    I have installed in XE7 succeed.
    But how to embed the pop window to the fmx form in the OnBeforePopup event?

  17. Max says:

    Thank you very much 🙂

  18. Murilo says:

    how to install 64bit?

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE6 Firemonkey Affiliate Program
Get A Cut Of Delphi XE6 Firemonkey Sales With The Embarcadero Affiliate Program

Embarcadero has an affiliate program for their products where they pay out 4% to 8% of the sale depending which...

Close