I'm developing a Firefox extension, but I have troubles with the
location of the toolbar, it's setting into the bookmark toolbar, and
for example when I open the customize window the toolbar disapear
until I close that window.
Anyway, I can't find information about how can i set te location of
the toolbar. Also I can't see the toolbar buttons into my Customize
menu.
Regards,
Agustín.
https://developer.mozilla.org/en/XUL_Tutorial/Toolbars
https://developer.mozilla.org/Code_snippets:Toolbar
- Jorge Villalobos
I've had trouble with this in the past. I found the follow XUL useful.
It automatically puts the icons between the home button and the
location input. Users can remove or move the icons using View ->
Toolbars --> Customize.
I earlier tried making them also be in their own toolbar so that they
could quickly be shown/hidden, but then they aren't put in the home
toolbar and possibly aren't customizable.
I've never had your problem, though, of icons disappearing when the
customize window is open. I hope this helps anyway.
<toolbarpalette id="BrowserToolbarPalette">
<toolbar
id="pd-toolbar"
toolbarname="ProcrasDonate Toolbar"
accesskey="P"
class="chromeclass-toolbar"
context="toolbar-context-menu"
hidden="false" persist="hidden"
defaultset="PD-classify-toolbar-button,PD-progress-toolbar-
button" />
<toolbarbutton id="PD-classify-toolbar-button"
autoCheck="true"
label="ProcrasDonating"
tooltiptext="Current activity: Unsorted. To re-
classify this site click this icon."
oncommand="myOverlay.url_bar_listener.toolbar_manager.onClassifyButtonCommand
();"
image="chrome://ProcrasDonate/skin/
UnsortedIcon.png"
class="toolbarbutton-1 chromeclass-toolbar-
additional"/>
<toolbarbutton id="PD-progress-toolbar-button"
autoCheck="true"
label="PD: 0"
tooltiptext="Progress towards weekly
ProcrasDonate goal"
oncommand="myOverlay.url_bar_listener.toolbar_manager.onProgressButtonPDCommand
();"
image="chrome://ProcrasDonate/skin/
IconBar0.png"
class="toolbarbutton-1 chromeclass-toolbar-
additional"/>
</toolbarpalette>