Menu

#4 Customize folder icons?

open
nobody
None
5
2002-07-05
2002-07-05
No

Hi: I've been experimenting with creating "open and close"
icons for folders in the Tree Menu, and I know how to
customize the code for the primary menu folders. For
example, I can create a main folder called "Bookstore" and
customize the "menu.makeLastSubmenu" like this:

menu.makeLastSubmenu(Var1,false, 'book-closed.gif','book-
open.gif');

Now when the menu appears, there will be a book-closed
icon that changes to a book-open icon when anyone clicks
on the + symbol. This information was included in the
downloaded source code examples.

So far, so good ... but now I can't figure out how to make
the same thing happen for a "folder in a folder". For
example, if I create a folder in the Bookstore folder
called "My New Book" (with the intention of adding links in
the new folder), I can't find the right place to add the 'book-
closed.gif','book-open.gif' and make the same cool thing
happen for that sub-folder. I know it's possible, because I
found a Tree Menu web site at http://www.tms.ws that has
2nd level open/close customized icons.

I did investigate the MTMIconList variable, but I think that
isn't the right place to make this happen. I'm looking for a
customizable solution - in fact, my "play site" is at
http://www.supportnexus.com if you want to look at my
progress to date.

Any help or advice you have for me would be greatly
appreciated.

Thanx

Mike O'Reilly

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.