Hi All. I'm trying to come up with a cross-platform solution to embed an HTML canvas into an existing application (and thus existing window). Gecko looks like a good way to do it, but I'm confused on a few points.

The examples in /mozilla/embedding/tests are way more complex than I'm looking for, and all create a seperate window for each instance of the browser. Not really good examples of "Embedding".

If I'm understanding things right, to be able to accomplish what I'd like, I need to implement my own "chrome" (like everyone who embeds Gecko). The difference, for me, from examples like winembed, is that most of my callbacks will be no-ops. Is that correct? When I call init on the nsIBaseWindow, I would pass a reference to the window of my existing application, and just the coordinates of where I would like the canvas in that window?

Does anyone have a basic sample of an application like this? Or even just a simple example that's a little easier to follow and pick out the important Geco API calls than winembed?

I can't say I have everything straight in my mind at the moment, so I apologize if my question is a little unclear. Any help is greatly appreciated.

Thanks.

J
drumminj at yahoo dot com

_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to