menubar
toolbar has one menupopup
child which will contain the menus and does not have any attribute.menubar
can contain any menus as necessary.<window title="Window1" orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menubar> <menu label="File"> ... </menu> </menubar> </window>and:
<window title="Window2" orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menubar> <menu label="Options"> ... </menu> </menubar> </window>Then we will have the following result:
<window id="Test" title="My Window" orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <menubar> <menu label="Colors"> <menupopup> <menuitem label="Red"/> <menuitem label="Blue"/> <menuitem label="Yellow"/> </menupopup> </menu> </menubar> </window>The result is:
Copyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence