Local file as icon in qooxdoo tree [message #126070] |
Tue, 24 March 2009 11:22 |
Eclipse User |
|
|
|
Originally posted by: haglund86.hotmail.com
Hi!
I've posted this question at the qooxdoo forum, but it probably makes
more sence to post it here...
I'm developing a RAP application where I use Qooxdoos tree structure in
a custom widget. I want to have icons for each node in the tree. When
using the code line
"var trs = qx.ui.tree.TreeRowStructure.getInstance().standard("Documents
(D:)", "icon/16/devices/drive-harddisk.png");"
from qooxdoos demo browser, I manage to get a icon from the URL.
However, when I change the URL to a local file, I cant get it to work.
I've tried relative path and absolute path, but the icon doesnt show.
How do I create an icon from a file (lets say the file is located at
C:\icons\iconFile.png)?
Thanks!
|
|
|
Re: Local file as icon in qooxdoo tree [message #126084 is a reply to message #126070] |
Tue, 24 March 2009 11:56 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Erik,
about an example how to change Tree node icon in RAP just query the
newsgroup about "Changing tree node image when expanding/collapsing".
There is a demo project posted by Elias. You can look at the RAP Tree
implementation for more details.
Best,
Ivan
Erik Haglund wrote:
> Hi!
>
> I've posted this question at the qooxdoo forum, but it probably makes
> more sence to post it here...
>
> I'm developing a RAP application where I use Qooxdoos tree structure
> in a custom widget. I want to have icons for each node in the tree.
> When using the code line
>
> "var trs =
> qx.ui.tree.TreeRowStructure.getInstance().standard("Documents (D:)",
> "icon/16/devices/drive-harddisk.png");"
>
> from qooxdoos demo browser, I manage to get a icon from the URL.
> However, when I change the URL to a local file, I cant get it to work.
> I've tried relative path and absolute path, but the icon doesnt show.
> How do I create an icon from a file (lets say the file is located at
> C:\icons\iconFile.png)?
>
> Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.02046 seconds