tintin
Newbie
Posts: 1
Registered: 9/15/2002
Member Is Offline
|
| posted on 9/15/2002 at 04:25 PM |
|
|
different icons for different leafs
Is there any way that you can display a different icon for a specific leaf? Obviously if I want to change icon for all leaf's I can just use a
different icon file, but I want to have different icons (similar to MS Outlook) depending on what the leaf is. Thkx
|
|
|
Dennus
Junior Member
Posts: 3
Registered: 8/27/2002
Member Is Offline
|
| posted on 9/15/2002 at 05:35 PM |
|
|
Yes you can!
Yes you can.
And it's quite easy to.
Alter the item_get_icon() function. If you have the default version of the script you can for instance check the "this.a_config[0]" variable (wichis the name part of the item) or the "this.a_config[1]" wich is the link part.
When you do this keep in mind that when the "b_junction" parameter (passed to the item_get_icon()") is true the function needs to return a + or -
sign (and some other ones) so in that case you can't return your own custom icon.
Hope this makes sense.
Bye
|
|
|
mkaamino
Newbie
Posts: 1
Registered: 10/16/2002
Member Is Offline
|
| posted on 10/16/2002 at 02:12 AM |
|
|
Hi! can you simplify what you stated? I'm also trying to change the leaf icons into different so that they won't look alike..
|
|
|