> 
> Preparing a C++ program which uses XUL windows as GUI and 'depends only
> on a few mozilla libs' is not a simple task, because XUL must be
> properly initialized.

I believe that's what Jo�o wanted to know how to do.

> 
> With xulrunner you can 'write' own xulrunner application - put xul
> files, some config files and your C++ components.
> 

>From what I understood, it's not components that Jo�o want's to build, its an
whole application. I also took a look at XULrunner and it seems to ask for some
special directories for profiles and stuff to be created. What if a person
want's do do something that doesn't need that?

> The displayed XUL window can be probably passed to your C++ component
> using some DOM XPCOM interface. But I am not sure it is the right way -
> XUL window is UI code and should rather be manipulated by some controler
> written in JavaScript - it is much simpler; only core application logic
> should be separated from controller/view and written in C++. But IMHO
> app logic should not need to manipulate directly on XUL window.

Writing the UI manipulation code in Javascript, how would later C++ access it?
How could, for example, a program written in C++ change a value in a certain
text box, or the window title?

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

Reply via email to