1) Download and Extract http://www.tmssoftware.biz/download/ChromiumFMX.zip 2) Open the package ChromiumFMX.dpk, compile and then install the package. 3) Add the directory where the ChromiumFMX source is located to your Win32 library path in the IDE (ceffmx.pas, ceflib.pas, ...) 4) Navigate to the directory where the TMS Pack/Cloud Pack/WebGMaps/WebOSMaps for FireMonkey source is installed. 5) Open the file FMX.TMSFMXxxxxWebBrowser.Win and comment the line {$DEFINE CHROMIUMOFF} 6) Copy the files inside the lib directory from the extracted ChromiumFMX.zip file to the directory where your application executable is or will be located. 7) Create or open a new or existing project and build your project.
I am having trouble understanding steps 4 .. 6 so far.
When I add the TTMSFMXWebBrowser to my form, the control has the message "Please follow the instructions..."
Delphi XE7 Professional with update 1 installed. (with firedac and mobile add-on packs installed).
I have a twebbrowser in android working fine. But to my surprise, its not supported in windows under firemonkey framework for multip-platform development. But I do need a browser for firemonkey (windows 7 and 8) since my app will be used on both platforms. This is an non-VCL project.
I need a browser (mini browser) to display a report from a grid component (not TMS) exported to html. The report is converted to html, (a manifest.html file) that I am using as a preview before finally sending off to print. (initially I searched for a PDF component to help do this but didn't want to spend the extra $100 plus, for this method, so i gave up and found another way)
You need to comment the line {$DEFINE CHROMIUMOFF} in the tmsdefs.inc file that is present in the installation directory and then recompile your application. When starting it should throw errors and then you need to copy the files from the chromium zip file into the same directory where the executable is located.
When using our installer, you need to specify an installation directory. This is the directory where the source is located after installation. By default, this is under C:\Users\Public\Documents\tmssoftware%ProductName%<div>
Replace %ProductName% with the product of your choice.
The correct file name is FMX.TMSWebBrowser.Win.pas (TMS Pack for FireMonkey) or FMX.TMSCloudWebBrowser.Win.pas (TMS Cloud Pack for FireMonkey) or FMX.TMSWebGMapsWebBrowser.Win.pas (TMS WebGMaps for FireMonkey) or FMX.TMSWebOSMapsWebBrowser.Win.pas (TMS WebOSMaps for FireMonkey).
then, open the "tmsdefs.inc" file and comment out the line, {$DEFINE CHROMIUMOFF} to // {$DEFINE CHROMIUMOFF}
* then, recompile again.. save.. close all.. and shut down the delphi IDE completely
* then launch delphi IDE and follow steps 6 and 7, finished.
6) Copy the files inside the lib directory from the extracted ChromiumFMX.zip file to the directory where your application executable is or will be located. 7) Create or open a new or existing project and build your project.
I am noticing that the browser has a strange behaviour. You can't use a wheelmouse for scrolling the webpage, and when I go to google, and paste an url in my txtURL textbox control, I am noticing that the browser is sometimes copying the text into the google webpage textbox. Very strange considering I have no code doing anything to the browser.
Also, resizing the window causes the refresh painting of the contents to dissapear complete and you have to close down the app.
These are just a few things I quickly noticed so far. I am guessing that there are some pre-initiallizations that need to be applied first, before using the control.
Is there a good reference source, glossary or tutorial for all the command functions and features ?
The webbrowser in XE7 is based on the opensource delphi embedded chromium webbrowser so the limitations are due to incorrect implementations in this source code and we are not able to modify the source code for our distributions. More information can be found at the followin URL: http://https://code.google.com/p/delphichromiumembedded/
Starting from XE8, the default TWebBrowser implementation is used and no further steps are needed.