Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Local file as icon in qooxdoo tree
Local file as icon in qooxdoo tree [message #126070] Tue, 24 March 2009 11:22 Go to next message
Eclipse UserFriend
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 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
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!
Previous Topic:Menubar disappears if setted at runtime
Next Topic:DoubleClickListener on DateTime (Calendar) Widget
Goto Forum:
  


Current Time: Fri Apr 19 03:10:55 GMT 2024

Powered by FUDForum. Page generated in 0.02046 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top