Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AppmethodComponentDelphiDemoFiremonkeyOSXWindows

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

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE6 Firemonkey Chromium WebBrowser | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSThe 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:
procedure TForm1.Button1Click(Sender: TObject);
var
fBrowser: TChromiumFMX;
begin
fBrowser := TChromiumFMX.Create(Self);
fBrowser.Parent := form1;
fBrowser.Align := TAlignLayout.alclient;
fBrowser.InitializeBrowser; // this line is to add obligatory
fBrowser.Load('http://www.fmxexpress.com/');
end;

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.

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

35 Comments

Leave a Reply