Moldorix wrote:
> Using qx.ui.form.Button I want to use my own icons.
> The Demo (widget/Window) is using the following constructor:
>
> var btn2 = new qx.ui.form.Button("Open Modal Dialog 2",
> "icon/16/apps/office-calendar.png");
>
> which works fine.
>
> Putting my own icons into
> QOOXDOO/framework/source/resource/qx/icon/Tango/16/apps/
> and constructing my button like this:
>
> var btn2 = new qx.ui.form.Button("Open Modal Dialog 2",
> "icon/16/apps/myicon.png");
>
> will not let appear any icon.
>
> I verified (Firebug) that the working example is using its icon from
> QOOXDOO/MYPROJECT/build/resource/qx/icon/Tango/16/apps/office-calendar.png
>
> Also placing my icon into this directory does not help.
>
> Where qooxdoo expect user icons ?
>
Place your icons in a folder like
"yourproject/source/resource/yourproject/". Now the path for the icon
button.png can be "yourproject/button.png" in the button creation code.
Also, declare the icons as assets at the top of the js file where you're
using it, like in your Application.js file. A sample line would be:
#asset(yourproject/button.png)
Make sure to run the build job. Now, using the asset tag, the build job
will copy the button.png to the build directory automatically.
Hope that helps.
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel