Re: Interested in embedding Mozilla/Firefox in your Delphi apps w/outActiveX?
- From: Brian Moelk <bmoelk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 04 Jun 2007 19:40:11 -0400
Markus Spoettl (toolsfactory) wrote:
Sounds interesting. I read your article and I'm wondering as to how
painting works. Why do you need to draw yourself? What does the browser
engine do?
LLMozLib takes care of rendering the bitmap offscreen, but it doesn't
paint it anywhere. The Delphi code takes this bitmap and presents it to
the user.
I believe they made that choice because they are rendering to OpenGL
textures for Second Life. They use a Windows compatible bitmap array,
so it's just a matter of drawing the pixels out. At first I had tried
to use Windows GDI API to paint it out, but it wasn't nearly as fast or
clean as Graphics32.
Also, is there a way to make the browser work purely virtual, that is
without having it access any files or folders on the disk. The hosting
application would feed it data (like the HTML page displayed, css and
images) via streams or otherwise. Is that possible?
The approach I'm taking is to embed an Indy HTTP Server in my
application and have the embedded browser use localhost and a dynamic
port. There might be some problems with anti-virus and firewall
software; this is something I'll figure out as I go forward.
Anyway, using this approach, I can produce all the html in memory
streams if I choose to using all of Delphi's db goodness to drive the
content. Or I can simply serve out files.
I'm also looking at doing some html templating. The first cut I've got
working with ATagParser, which is ok, but I'm exploring doing templating
on the client with javascript libraries like zParse or mjt or trimpath
or something like that.
One thing I should mention that I don't think I addressed directly, is
I'm not determining interest so I can sell this stuff. I'm merely
wondering if the community is interested enough in it for me to spend
more time wrapping it up than I would normally do for my own private use.
--
Brian Moelk
Brain Endeavor LLC
bmoelk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
.
- References:
- Interested in embedding Mozilla/Firefox in your Delphi apps w/out ActiveX?
- From: Brian Moelk
- Re: Interested in embedding Mozilla/Firefox in your Delphi apps w/outActiveX?
- From: Markus Spoettl (toolsfactory)
- Interested in embedding Mozilla/Firefox in your Delphi apps w/out ActiveX?
- Prev by Date: Re: Interested in embedding Mozilla/Firefox in your Delphi apps w/out ActiveX?
- Next by Date: Re: Database without a server - can I find one....
- Previous by thread: Re: Interested in embedding Mozilla/Firefox in your Delphi apps w/outActiveX?
- Next by thread: Re: Interested in embedding Mozilla/Firefox in your Delphi apps w/out ActiveX?
- Index(es):
Relevant Pages
|