GeckoPort

From Lazarus wiki
Revision as of 01:07, 16 November 2009 by Phil (talk | contribs) (First draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

About

GeckoPort is a Lazarus/Free Pascal version of Takanori Ito's Gecko SDK for Delphi, including the TGeckoBrowser component. The original unported Delphi source is available from here:

 http://d-gecko.svn.sourceforge.net/viewvc/d-gecko/

Download

You can download the ported source using Subversion:

 svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/geckoport [local dir]

A zip file of the ported source is also available:

 http://web.fastermac.net/~MacPgmr/GeckoPort/

License

MPL 1.1

Installation

To install the GeckoComponents package in Lazarus:

  • Choose Package | Open package file, then select GeckoComponents.lpk (in the Components subfolder).
  • Click Compile to compile the package.
  • Click Install to rebuild and relaunch Lazarus.

To compile a sample app:

  • Choose File | Open, then select BrowseWin.lpi or GBrowser.lpi (both in the SampleApps subfolder).
  • Choose Run | Run to compile and run the sample app.

To Do

Win32 widgetset

The BrowseWin and GBrowser sample apps work the same as they do with Delphi. Note that the BrowseWin app raises an access violation each time you click on a link. It's possible this is because not all required interfaces have been implemented yet in brow10.pas the way they are in TGeckoBrowser (which is used by the GBrowser app and which does not have this problem).

Carbon widgetset

A native window must be passed in to initialize the browser component. On OS X, this must be a Cocoa window, so the Carbon widgetset will not work.

Cocoa widgetset

Although the cocoa widgetset currently has support only for TForm and one or two other controls, the BrowseWin sample app can be run with the Cocoa widgetset since this app's form uses only the TForm control. Note that this app has the same issue as described above for win32.

The GBrowser sample app will crash because of the current incomplete state of the Cocoa widgetset.

GTK2 widgetset

It is not known whether the GTK2 widgetset works with Gecko. Please report testing success or failure to the GeckoPort maintainer:

 MacPgmr (at) fastermac (dot) net