OK here is the program I am working on now.. First of all check out
www.treemenu.com This program will generate the appropriate javascript for the menu... Right now it does it one line at a time... I want to be able to do it automatically... In this version the Add and Delete buttons will replace the generate and copy buttons, and about using a resource file.. need a little help.... Any help whatsoever is welcome. Basically I have to generate javascript like this:
Here is my app:
http://forums.vb-world.net/attachment.php?postid=329950// Main menu.
var menu = null;
menu = new MTMenu();
menu.MTMAddItem(new MTMenuItem("Item1","main.htm","text"));
menu.MTMAddItem(new MTMenuItem("Folder1"));
//Folder1 menu.
var folder1 = null;
folder1 = new MTMenu();
folder1.MTMAddItem(new MTMenuItem("Link1", "
http://www.ExternalLink.com", "_TOP"));
menu.items[1].MTMakeSubmenu(folder1);
My progam right now does the menu items one line at a time...Like I said I just need to konw how to setup the Interface and have it do this automatically..... The best thing about this menu is that it can go folders as deep as needed.
menu.MTMAddItem(new MTMenuItem("Folder1"));
^
this varies depending which menu the item belongs in
menu.items[1].MTMakeSubmenu(folder1); < name of submenu
^ ^which item number it is, begin at 0
which menu the submenu belongs in
Well I want to be able to have it show the current strucutre of the tree on left. Then when I save it I want it to put in all the appropriate lines as desribed above.
I just need people to look at this and give me recommendations on how to do it..
First of all I don't know what components I should use on the left to accomplish this.
Sorry for the long post, Pleas Help!
Zevlag