Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-03

Embedding Gecko engine inside Lazarus/Free Pascal application

15 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Has anybody tried to embed the Gecko rendering engine inside a Lazarus / Free Pascal applications? This would make available a full spec browser / HTML viewer for applications. Similar to what TWebBrowser wraps IE for Delphi, but at least the Gecko engine is cross-platform.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
Hi, Has anybody tried to embed the Gecko rendering engine inside a Lazarus / Free Pascal applications? This would make available a full spec browser / HTML viewer for applications. Similar to what TWebBrowser wraps IE for Delphi, but at least the Gecko engine is cross-platform.

I forgot to include a link:
http://developer.mozilla.org/en/docs/Embedding_Mozilla

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: Has anybody tried to embed the Gecko rendering engine inside a Lazarus / Free Pascal…
Graeme Geldenhuys wrote 6 lines
Hi, Has anybody tried to embed the Gecko rendering engine inside a Lazarus / Free Pascal applications? This would make available a full spec browser / HTML viewer for applications. Similar to what TWebBrowser wraps IE for Delphi, but at least the Gecko engine is cross-platform.

I have tried, the problem is that it works with XPCom. Since that is C++ and I didn't feel like generating a 'flat' wrapper library, I abandoned the effort.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: I have tried, the problem is that it works with XPCom. Since that is C++ and I didn't…
Michael Van Canneyt wrote
I have tried, the problem is that it works with XPCom. Since that is C++ and I didn't feel like generating a 'flat' wrapper library, I abandoned the effort.

Was that the only real issue you found? No other technical limitations?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Paul Ishenin
to Michael Van Canneyt: I have tried, the problem is that it works with XPCom. Since that is C++ and I didn't…

Michael Van Canneyt ?????:

Show quoted text 13 lines
On Mon, 31 Mar 2008, Graeme Geldenhuys wrote: > Hi, > > Has anybody tried to embed the Gecko rendering engine inside a Lazarus > / Free Pascal applications? This would make available a full spec > browser / HTML viewer for applications. Similar to what TWebBrowser > wraps IE for Delphi, but at least the Gecko engine is cross-platform. I have tried, the problem is that it works with XPCom. Since that is C++ and I didn't feel like generating a 'flat' wrapper library, I abandoned the effort.

I've read that XPCom is simmilar to Com and that mostly all thing can be done through nsISupports interface. So maybe XPCom support can be embed into compiler as Com support is?

Best regards,
Paul Ishenin.

Reply by email

Yury Sidorov
to Paul Ishenin: Michael Van Canneyt ?????: I've read that XPCom is simmilar to Com and that mostly all…

From: "Paul Ishenin"

Show quoted text 25 lines
Michael Van Canneyt ?????: > > On Mon, 31 Mar 2008, Graeme Geldenhuys wrote: > >> Hi, >> >> Has anybody tried to embed the Gecko rendering engine inside a >> Lazarus >> / Free Pascal applications? This would make available a full spec >> browser / HTML viewer for applications. Similar to what >> TWebBrowser >> wraps IE for Delphi, but at least the Gecko engine is >> cross-platform. > > I have tried, the problem is that it works with XPCom. Since that > is C++ > and I didn't feel like generating a 'flat' wrapper library, I > abandoned > the effort. I've read that XPCom is simmilar to Com and that mostly all thing can be done through nsISupports interface. So maybe XPCom support can be embed into compiler as Com support is?

XPCom interfaces are identical to COM interfaces. There is no need to implement something special in the compiler.
GeckoSDK for Delphi has all basic stuff to communicate with embedded browser. But it is outdated a bit.
Also there is XPIDL2PAS compiler which can convert XPCom .idl files to .pas headers. This tool is from Gecko-Delphi Framework, which seems to be abandoned now.

Yury Sidorov,

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys: Was that the only real issue you found? No other technical limitations? - Graeme -…
Graeme Geldenhuys wrote 8 lines
On 31/03/2008, Michael Van Canneyt wrote: > > I have tried, the problem is that it works with XPCom. Since that is C++ > and I didn't feel like generating a 'flat' wrapper library, I abandoned > the effort. Was that the only real issue you found? No other technical limitations?

None that I am aware of.

On the other hand, I didn't search very deep: all descriptions were in C++ and Java(Script), so I didn't even bother anymore.

Seeing that there is a GeckoSDK which works with Delphi, it is maybe worth trying: if that would work cross-platform, I'm all for porting it and including it in FPC.

Michael.

Reply by email

Michael Van Canneyt
to Paul Ishenin: Michael Van Canneyt ?????: I've read that XPCom is simmilar to Com and that mostly all…
Paul Ishenin wrote 18 lines
> Michael Van Canneyt ?????: > > On Mon, 31 Mar 2008, Graeme Geldenhuys wrote: > >> Hi, >> >>> Has anybody tried to embed the Gecko rendering engine inside a Lazarus >> / Free Pascal applications? This would make available a full spec >>< browser / HTML viewer for applications. Similar to what TWebBrowser >>< wraps IE for Delphi, but at least the Gecko engine is cross-platform. > < > I have tried, the problem is that it works with XPCom. Since that is C++< and I didn't feel like generating a 'flat' wrapper library, I abandoned > the effort. I've read that XPCom is simmilar to Com and that mostly all thing can be done through nsISupports interface. So maybe XPCom support can be embed into compiler as Com support is?

if it works using 'regular' interfaces - and the geckosdk seems to suggest it is - then no additional support is needed in the compiler.

That would be cool, of course.

Sigh. Too much projects. Too little time to do it all :(

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: None that I am aware of. On the other hand, I didn't search very deep: all descriptions…
Michael Van Canneyt wrote
Seeing that there is a GeckoSDK which works with Delphi, it is maybe worth trying: if that would work cross-platform, I'm all for porting it and including it in FPC.

I'm definitely going to take a products are in
great need of a browser component (help viewer, reporting etc) and we already standardised our CGI products on Firefox.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 9 lines
On 31/03/2008, Michael Van Canneyt wrote: > Seeing that there is a GeckoSDK which works with Delphi, it is maybe > worth trying: if that would work cross-platform, I'm all for porting > it and including it in FPC. I'm definitely going to take a products are in great need of a browser component (help viewer, reporting etc) and we already standardised our CGI products on Firefox.

Let me know if I can do something to help, I'm interested in this as well. the xpidl2pas tool mentioned by Paul Ishenin seems like something to port and use.

Michael.

Reply by email