Search code examples
delphiactivexmshtmldelphi-xe2firemonkey

About TidHttp, mshtml, ActiveX, COMObj in Firemonkey (Delphi)


I was reviewing the following interesting article, "Extract Links from HTML page using Delphi", and I tested in Firemonkey and it's very useful, however this code uses objects from Mshtml, ActiveX, and COMObj, so my questions are:

  1. do those objects above make less cross-platform for a Firemonkey project? if so, How could I get the same functionality using resources targeted for Firemonkey platform?
  2. How I can emulate a little webbrowser in firemonkey?

Thanks in advance.

Note: ChromiumEmbedded object does't work for Firemonkey.


Solution

  • MSHTML, ActiveX, and ComObj are all Windows-specific, and therefore are not cross-platform in any way.

    There are no cross-platform HTML viewers for FireMonkey yet, AFAIK (it's been asked at the Embarcadero Delphi forums). TIdHTTP is available for Win32, Win64, and OSX; it's not available yet for iOS - see this post.