OK, I've done a little bit of VB and am coming on my way.. but I need help! I need a little bit of guidance, somebody to give me some pointers on my code. If any of you would help me I would greatly appreciate it!!! I won't take a lot of your time just a bit... Just have a few general questions in every which way...
Please check out my post below:
Thankyou
ps.. I have some experience in BASIC/QBASIC, HTML, JavaScript, and have done a fair amount in VB so I'm not a total beginner....
Last edited by Zevlag; Apr 27th, 2001 at 09:04 PM.
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 graphically, ie design the menu sorta like you do a toolbar ... Also the Add and Delete buttons will replace the generate and copy buttons, and about using a resource file.. need a little help....
// 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.
Code:
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
Yes. If you check out my program now (in an above post) it generates the lines with the items if each filed is inputed. 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 it 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.