Re: Interested in embedding Mozilla/Firefox in your Delphi apps w/outActiveX?



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
.



Relevant Pages

  • Re: The technique to capture HTML into JPG file
    ... method to capture the HTML into JPG file, given the start and end x,y ... rectangular area into JPG file. ... Or maybe I can use an invisible window to let browser render ... You definitely would need something that does the rendering, ...
    (comp.unix.programmer)
  • Re: Stylesheets in ASPX/HTML pages
    ... but the rendering is different. ... while the HTML version of the page has encoding listed as "Unknown". ... If I tweak Machine.Config and Web.Config to NOT specify UTF-8 encoding ... different encoding schemes depending on the user's browser (probably ...
    (microsoft.public.inetserver.iis)
  • Re: Rendering issues with Hebrew
    ... That both IE and FF render the Word HTML version the same ... indicates to me that the browser is not the problem. ... how the browsers are rendering it. ... Word generates *incorrect* HTML code. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • spooling right to a printer
    ... skip rendering the html to the browser and just spool it to the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Why cant I display a bitmap I create?
    ... For people implementing programs where a design like that would have ... enough with rendering to the screen to change it. ... especially if you don't dispose the old bitmap before loading a new one. ... public IntPtr hWnd; ...
    (microsoft.public.dotnet.languages.csharp)