Oliver Vogel schrieb:
@Benjamin
Thank you for your help.
But (sorry for that but) it is only half of what i need.
If have a tree with let's say 5 nodes. The first is called "inbox", the
second "trash" and so on.
Now i want the trash-node to have a trash-icon, the inbox-node to have a
inbox-icon and so on (every node has it's own icon).
Is this possible too?

Just define your own appearance like tree-folder-inbox, define the icon to use there and do a yourFolder.setAppearance("tree-folder-inbox") then.

Sebastian



Thanks for your help

Olli


==================================================
Diplom-Informatiker
Oliver Vogel
Geschaeftsfuehrer

Meins und Vogel GmbH  E-Mail: [EMAIL PROTECTED]
Esslinger Str. 45     Tel.:   +49 (7153) 6136-20
                      Fax:    +49 (7153) 6136-99
D 73207 Plochingen    http://www.muv.com/

Handelsregister: Esslingen am Neckar HRB 3536
Geschäftsführer: Dipl.-Inf. Klaus  Meins
                 Dipl.-Inf. Oliver Vogel
==================================================
"wer Rechtschreibfehler findet darf sie behalten"
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Benjamin Reitzammer
Gesendet: Mittwoch, 15. Februar 2006 09:47
An: [email protected]
Betreff: Re: [qooxdoo-devel] icon of tree-Node

Hi,

Am 14.02.2006 22:47, Oliver Vogel schrieb:
@sebastian
Sorry, it's not Sebastian, but I'll tell you nonetheless ;)

is it now possible to have a "user-defined" icon for each
node in the tree
(some weeks ago it was not)
The appearances "tree-icon", "tree-folder-icon" and "tree-element-icon" are your friends here. If you look at the code for "tree-element-icon" in the default theme, you'll find that the code is pretty self-explanatory.

<code>
theme.registerAppearance("tree-element-icon",
{
   initial : function(vWidget, vTheme)
   {
     return {
       width : 16,
       height : 16,
       source : "icons/16/file-new.png"
     };
   }
});
</code>

Cheers

Benjamin


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to