Hi & thanks for your help -
am trying to get toolbar in a testable state without going through with the whole 
installation procedure with XPI files etc... (partly I expect that procedure to be 
cumbersome and will need to be repeated lots during development, and partly I don't 
see a "de-install" heading anywhere) - 
so I'm looking at "installed-chrome.txt" for getting the thing going... 
I see a typical line in this file is:

locale,install,url,jar:resource:/chrome/cview.jar!/locale/en-US/cview/

it all seems to refer to java files and I understand these refer to an rdf file which 
refers to my xul file -
I've given up on making sense of the documentation this evening - am I on the right 
lines so far?, do I need to create a jar and an rdf file to test my xul file? Also 
what is the syntax used in installed-chrome so that I can add to it? Is there a simple 
example I can crib from anywhere?

TVMIA!!!
:-)

Tony



-----Original Message-----
From: Karsten D�sterloh [mailto:[EMAIL PROTECTED]
Sent: 05 January 2004 17:47
To: [EMAIL PROTECTED]
Subject: Re: toolbars


A.J.Brush aber hob zu reden an und schrieb:
> At the moment getting a dummy toolbar there is proving difficult!
> 
> the layout of my xul file is this
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <overlay id = "my overlay" 
> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";>
>    <toolbar id="my bar">
>               <toolbarbutton id = "mybutton" label = "my button" />
>    </toolbar>
> </overlay>

(Are whitespaces allowed in IDs? Dunno, but I don't think so.)

You have to specify the element to get the new content overlayed by you,
e.g. the "navigator-toolbox" in the Mozilla main window:

<?xml version="1.0" encoding="iso-8859-1"?>
<overlay id = "myOverlay" xmlns="...foo...">
  <toolbox id = "navigator-toolbox">
    <toolbar id = "myBar">
      <toolbarbutton id = "mybutton" label = "my button" />
    </toolbar>
  </toolbox>
</overlay>


The XulPlanet tutorial <http://www.xulplanet.com/tutorials/xultu/> is
worth a read, especially
<http://www.xulplanet.com/tutorials/xultu/crosspov.html>.


Karsten
-- 
       Freiheit stirbt        |       Fsayannes SF&F-Bibliothek:
            Mit Sicherheit    |       http://fsayanne.tprac.de/
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

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

Reply via email to