Re: toolbarbutton image doesn't appear
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
בתאריך יום חמישי, 3 ביולי 2008 05:54:50 UTC+2, מאת Praetorian: > Hi, > I'm new to XUL and am trying to create a simple xulrunner application. > I want to have a button on my toolbar display an image along with > text. Here's the folder organization of my application: > > myapp > |-- chrome/ > | |-- content/ > | | |-- main.xul > | |-- locale/ > | |-- skin/ > | | |-- default/ > | | |-- img/ > | | |-- expand.png > | |-- myapp.manifest > |-- defaults/ > | |-- preferences/ > | |-- prefs.js > |-- xulrunner/ > |-- application.ini > |-- myapp.exe > > The main window displays when I run myapp.exe. The problem is with a > toolbar button image in the window. Only the text appears not the > image. > > This is the code in main.xul: > > <toolbar id="myapp-toolbar"> > <toolbarbutton id="expand" tooltiptext="Expand" label="Expand" > image="chrome://myapp/skin/default/img/expand.png"/> > </toolbar> > > If I change the toolbarbutton line to > > <toolbarbutton id="expand" tooltiptext="Expand" label="Expand" > image="../skin/default/img/expand.png"/> > > then Firefox and a XUL IDE extension for Eclipse that I've installed > both show the button (neither do in the first case) but still running > myapp.exe only shows the button text. > > I've also tried > > <toolbarbutton id="expand" tooltiptext="Expand" label="Expand" > style="list-style-image: url(chrome://myapp/skin/default/img/ > expand.png)"/> > > but then the image isn't displayed in any of the cases. > > What mistake am I making? > > Thanks for your help, > Ashish. hi, you can see example of toolbar with image in: http://dh-software.net/website2/dhs_home1/firefox_toolbar1.aspx doron _______________________________________________ dev-tech-xul mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xul