How to enable WebGL support in Delphi 10.1 webbrowser component? - delphi

We need to play a 3D viewer in our delphi 10.1 application. For this we are using Delphi TWebBrowser component to emulate browser. But TWebBrowser in Delphi does not support WebGL. Is there any way to overcome this issue?

Instead of TWebBrowser component which encapsulates Internet Explorer, you could use Chromium Embedded Framework (CEF).
But then you have to ship your app with additional DLLs, just to keep that in mind.
See here vor V3 or here for V4.

Related

Installing HTML Components into Delphi XE

I think pbear's component HTML Components, v 9.45, is just what I need. His free download only has packages for Delphi 2006 and earlier. I have Delphi XE. How would I install his components into my Delphi?
Try this Google code download site THtmlViewer.
Seems to be updated to XE2 version plus Lazarus.
See also this answer to SO question How to display an email images on Pbear Html viewer component?.
Have you considered using Delphi Chromium Embedded? This is the Delphi API for Google's Chromium, which is used by the Google Chrome web browser. Several Delphi versions are supported, including XE and XE2.
Unless you only need rudimentary browser support, it makes sense to use an up-to-date browser with solid support for modern web standards.
The repository includes Delphi sample projects for VCL and FireMonkey.

Is there a web browser component for use in FireMonkey application?

For Delphi VCL there is TWebBrowser and some 3rd party components like TEmbeddedWebBrowser available for browsing a web.
Is there a similar web browser component but for Firemonkey framework in Delphi XE2 (ideally with Windows and Mac support) ?
You can use the ChromiumEmbedded package for Delphi. There's a TChromiumFMX component which is suited for FireMonkey applications. I've tested the demo project from the repository and it works fine for 32-bit Windows.
However I can't tell you if nor how to build and use it in Mac OS. The only thing I can tell you is that the ChromiumEmbedded for Delphi is distributed only with Windows binaries, the binaries for Mac OS you can download from here.
As far as I know (!), the situation is as follows:
CromiumEmbedded supports OSX (& Windows of course)
There is a Delphi ChromiumEmbedded
Delphi supports OSX through the FireMonkey framework
There is even a FireMonkey version of the Delphi ChromiumEmbedded
The Delphi/FireMonkey ChromiumEmbedded does not support OSX
If somebody knows better, that would be fantastic.

SynEdit for Firemonkey?

Is there a synedit package that works with firemonkey (or someone working on it) ?
From what I can gather there was a VGScene port earlier (see: this site), but it seems to been removed.
Also see this site:
There most likely is not (at the moment):
From the homepage:
It is a pure-VCL/CLX control, meaning it is not a wrapper for Microsoft Windows
controls and so no run-time library is required.
CLX or Component Library for Cross Platform is the cross-platform equivalent of the VCL - Borland's widget library.
From Nakeymonkey - native controls for firemonkey
With the VCL, Borland never had to worry about all of this because they just wrote a wrapper around the Windows API Rich Edit control. So why didn’t Embarcadero do the same thing with Firemonkey? Because Firemonkey also needs to compile for OS X and the Windows API Rich Edit control doesn’t exist there.
Links:
Embarcadero Delphi
Qt.pas pascal bindings for QT

Does Delphi XE2 FireMonkey support Indy for cross-platform apps?

Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application.
My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously need the IdHTTP.Post();. If not, is there a way to do this in FireMonkey?
I have been googling for quite awhile now, not finding anything. :S
VCL means Visual Component Library. There's nothing about Indy that is "visual" (meaning "seen at runtime"), meaning that "VCL components are useless in a FireMonkey application" has no relevance to Indy.
You can create a new FireMonkey HD application in Delphi XE2, target OS X, and the Indy component pages are still available in the IDE, meaning that they are compatible with supported FireMonkey cross-platform targets. They're also available for FireMonkey HD Windows targets (32 and 64 bit).
Indy ships with the IDE (and has since D6) so there is nothing extra to buy if you already have XE2 installed. Also, Indy is open-source, so you can upgrade an Indy installation using source code from Indy's public access SVN server or mirror.
Regarding FireMonkey, Indy does work in FireMonkey. Indy uses whatever the native socket API is on a given platform (WinSock on Windows, Posix on Mac, libc on Kylix, etc).
The only known gotcha with Indy under FireMonkey at the moment is the TIdAntiFreeze component is not available at design-time. The IDE cannot resolve it correctly due to the non-standard way it is packaged (to be adressed in Indy 11). You can instantiate it programmably in code at run-time, though.
I made a client server example using tcp indy http://www.freelancecode.net/community/viewtopic.php?f=35&t=246
The Components Not Used in iOS Apps DocWiki page for Delphi XE2 lists most of the Indy classes:
The following list is the set of components (along with the used
units) that might be available in the Tool Palette for iOS
applications, but are not supported for iOS applications.

converting TForm win32 app to Win7 gadget (delphi)

What is the process of converting win32 application (a small popup window actually) to win7 gadget?
Do I need to convert my exe to activex component, can I still use TForm ?
it would be nice to have support for both Win7 + Vista.
The Windows Vista/7 gadgets are essentially mini-HTML applications. The user interface is composed of pages containing regular HTML, CSS ,images and potentially ActiveX controls.
So the only way to use your win32 application into a gadget is convert the application to a Activex Control.
You can read these articles
Activex
Building ActiveX Controls with Delphi (This article is old but is still useful)
Delphi and Active Forms
Converting a standard Delphi Form to an ActiveForm
Gadgets
Introduction to the Gadget Platform
Developing a Gadget for Windows Sidebar
Bye.
If you are able to read German, there is a tutorial at www.delphipraxis.net. Perhaps someone may translate it to English...

Resources